• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

temporalio / sdk-java / #433

20 Nov 2026 11:28PM UTC coverage: 71.886% (+0.05%) from 71.837%
#433

push

github

web-flow
Report storage driver types in worker heartbeats (#3230)

8791 of 14383 branches covered (61.12%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 1 file covered. (100.0%)

146 existing lines in 21 files now uncovered.

34692 of 46106 relevant lines covered (75.24%)

0.75 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

45.16
/temporal-sdk/src/main/java/io/temporal/workflow/MutableSideEffectOptions.java
1
package io.temporal.workflow;
2

3
import io.temporal.common.Experimental;
4
import java.util.*;
5

6
/** MutableSideEffectOptions is used to specify options for a side effect. */
7
public class MutableSideEffectOptions {
8

9
  public static Builder newBuilder() {
10
    return new MutableSideEffectOptions.Builder();
1 ✔
11
  }
12

13
  public static Builder newBuilder(MutableSideEffectOptions options) {
14
    return new MutableSideEffectOptions.Builder(options);
×
15
  }
16

17
  public static MutableSideEffectOptions getDefaultInstance() {
18
    return DEFAULT_INSTANCE;
×
19
  }
20

21
  private static final MutableSideEffectOptions DEFAULT_INSTANCE;
22

23
  static {
24
    DEFAULT_INSTANCE = MutableSideEffectOptions.newBuilder().build();
1 ✔
25
  }
1 ✔
26

27
  public static final class Builder {
28
    private String summary;
29
    private List<EventGroup> eventGroups;
30

31
    private Builder() {}
32

33
    private Builder(MutableSideEffectOptions options) {
×
34
      if (options == null) {
×
35
        return;
×
36
      }
37
      this.summary = options.summary;
×
38
      if (!options.eventGroups.isEmpty()) {
×
39
        this.eventGroups = new ArrayList<>(options.eventGroups);
×
40
      }
41
    }
×
42

43
    /**
44
     * Single-line fixed summary for this mutable side effect that will appear in UI/CLI. This can
45
     * be in single-line Temporal Markdown format.
46
     *
47
     * <p>Default is none/empty.
48
     */
49
    public MutableSideEffectOptions.Builder setSummary(String summary) {
50
      this.summary = summary;
1 ✔
51
      return this;
1 ✔
52
    }
53

54
    /**
55
     * Event Groups to associate with the marker recorded by this call, in addition to those in
56
     * scope. Calls accumulate.
57
     *
58
     * @see EventGroup
59
     */
60
    @Experimental
61
    public MutableSideEffectOptions.Builder addEventGroups(EventGroup... eventGroups) {
62
      if (eventGroups.length == 0) return this;
1 !
63
      if (this.eventGroups == null) {
1 !
64
        this.eventGroups = new ArrayList<>(eventGroups.length);
1 ✔
65
      }
66
      for (EventGroup group : eventGroups) {
1 ✔
67
        this.eventGroups.add(Objects.requireNonNull(group, "eventGroups"));
1 ✔
68
      }
69
      return this;
1 ✔
70
    }
71

72
    /**
73
     * Associates the given Event Groups, in addition to any already added. Calls accumulate.
74
     *
75
     * @see EventGroup
76
     */
77
    @Experimental
78
    public MutableSideEffectOptions.Builder addEventGroups(List<EventGroup> eventGroups) {
UNCOV
79
      return addEventGroups(eventGroups.toArray(new EventGroup[0]));
×
80
    }
81

82
    public MutableSideEffectOptions build() {
83
      return new MutableSideEffectOptions(summary, eventGroups);
1 ✔
84
    }
85
  }
86

87
  private final String summary;
88
  private final List<EventGroup> eventGroups;
89

90
  private MutableSideEffectOptions(String summary, List<EventGroup> eventGroups) {
1 ✔
91
    this.summary = summary;
1 ✔
92
    this.eventGroups =
1 ✔
93
        eventGroups == null || eventGroups.isEmpty()
1 !
94
            ? Collections.emptyList()
1 ✔
95
            : Collections.unmodifiableList(new ArrayList<>(eventGroups));
1 ✔
96
  }
1 ✔
97

98
  public String getSummary() {
99
    return summary;
1 ✔
100
  }
101

102
  @Experimental
103
  public List<EventGroup> getEventGroups() {
104
    return eventGroups;
1 ✔
105
  }
106

107
  public MutableSideEffectOptions.Builder toBuilder() {
UNCOV
108
    return new MutableSideEffectOptions.Builder(this);
×
109
  }
110

111
  @Override
112
  public String toString() {
UNCOV
113
    return "MutableSideEffectOptions{"
×
114
        + "summary='"
115
        + summary
116
        + '\''
117
        + ", eventGroups="
118
        + eventGroups
119
        + '}';
120
  }
121

122
  @Override
123
  public boolean equals(Object o) {
124
    if (this == o) return true;
×
125
    if (o == null || getClass() != o.getClass()) return false;
×
126
    MutableSideEffectOptions that = (MutableSideEffectOptions) o;
×
UNCOV
127
    return Objects.equals(summary, that.summary) && Objects.equals(eventGroups, that.eventGroups);
×
128
  }
129

130
  @Override
131
  public int hashCode() {
UNCOV
132
    return Objects.hash(summary, eventGroups);
×
133
  }
134
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc