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

temporalio / sdk-java / #431

18 Nov 2026 09:28PM UTC coverage: 71.813% (+0.01%) from 71.8%
#431

push

github

web-flow
Include inherited fields in service stub options toString (#3152)

* Include inherited fields in service stub options toString

WorkflowServiceStubsOptions.toString rendered only the five fields
declared on the subclass, silently dropping every field inherited from
ServiceStubsOptions. Target, TLS settings, timeouts, and headers were
absent from the output, which is exactly the connection information
wanted when diagnosing a client from logs.

OperatorServiceStubsOptions and CloudServiceStubsOptions had no
toString at all and fell back to Object.toString, logging as an
unreadable identity hash.

Extract the field rendering on ServiceStubsOptions into a
package-private toStringFields helper and have each subclass inline it
alongside its own fields. The helper is package-private because all
four classes live in io.temporal.serviceclient, so this adds no public
API surface.

Also include apiKeyProvided, which already participates in equals and
hashCode but was omitted from toString. The API key itself is held by a
metadata provider and is still never rendered.

Fixes #2148.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Render header names instead of header values in toString

Metadata.toString renders header values in the clear. The previous
commit propagated the inherited headers field into
WorkflowServiceStubsOptions, OperatorServiceStubsOptions, and
CloudServiceStubsOptions, which would have newly exposed any credential
supplied through setHeaders, such as a static Authorization header.

Render the header names only. This keeps the diagnostic signal that
matters when reading the output, whether a header is configured and
which ones, without printing what they contain.

Also add a regression test for the missing separator before
congestionInitialInterval in RpcRetryOptions.toString.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Add changelog entry for service stub options toString

Co-Authored-By: Claude Opus 5.5 <noreply@anthro... (continued)

8779 of 14371 branches covered (61.09%)

Branch coverage included in aggregate %.

5 of 6 new or added lines in 4 files covered. (83.33%)

892 existing lines in 36 files now uncovered.

34625 of 46069 relevant lines covered (75.16%)

0.75 hits per line

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

83.26
/temporal-sdk/src/main/java/io/temporal/activity/ActivityOptions.java
1
package io.temporal.activity;
2

3
import com.google.common.base.Objects;
4
import io.temporal.client.WorkflowClientOptions;
5
import io.temporal.common.*;
6
import io.temporal.common.context.ContextPropagator;
7
import io.temporal.failure.CanceledFailure;
8
import io.temporal.workflow.EventGroup;
9
import java.time.Duration;
10
import java.util.ArrayList;
11
import java.util.Collections;
12
import java.util.List;
13

14
/** Options used to configure how an activity is invoked. */
15
public final class ActivityOptions {
16

17
  public static Builder newBuilder() {
18
    return new Builder();
1 ✔
19
  }
20

21
  public static Builder newBuilder(ActivityOptions options) {
22
    return new Builder(options);
1 ✔
23
  }
24

25
  @Deprecated
26
  public static ActivityOptions getDefaultInstance() {
UNCOV
27
    return DEFAULT_INSTANCE;
×
28
  }
29

30
  private static final ActivityOptions DEFAULT_INSTANCE;
31

32
  static {
33
    DEFAULT_INSTANCE = ActivityOptions.newBuilder().validateAndBuildWithDefaults();
1 ✔
34
  }
1 ✔
35

36
  public static final class Builder {
37

38
    private Duration heartbeatTimeout;
39
    private Duration scheduleToCloseTimeout;
40
    private Duration scheduleToStartTimeout;
41
    private Duration startToCloseTimeout;
42
    private String taskQueue;
43
    private RetryOptions retryOptions;
44
    private List<ContextPropagator> contextPropagators;
45
    private ActivityCancellationType cancellationType;
46
    private boolean disableEagerExecution;
47

48
    @SuppressWarnings("deprecation")
49
    private VersioningIntent versioningIntent;
50

51
    private String summary;
52
    private List<EventGroup> eventGroups;
53
    private Priority priority;
54

55
    private Builder() {}
56

57
    private Builder(ActivityOptions options) {
1 ✔
58
      if (options == null) {
1 !
UNCOV
59
        return;
×
60
      }
61
      this.taskQueue = options.taskQueue;
1 ✔
62
      this.heartbeatTimeout = options.heartbeatTimeout;
1 ✔
63
      this.retryOptions = options.retryOptions;
1 ✔
64
      this.contextPropagators = options.contextPropagators;
1 ✔
65
      this.scheduleToCloseTimeout = options.scheduleToCloseTimeout;
1 ✔
66
      this.startToCloseTimeout = options.startToCloseTimeout;
1 ✔
67
      this.scheduleToStartTimeout = options.scheduleToStartTimeout;
1 ✔
68
      this.cancellationType = options.cancellationType;
1 ✔
69
      this.disableEagerExecution = options.disableEagerExecution;
1 ✔
70
      this.versioningIntent = options.versioningIntent;
1 ✔
71
      this.summary = options.summary;
1 ✔
72
      if (!options.eventGroups.isEmpty()) {
1 ✔
73
        this.eventGroups = new ArrayList<>(options.eventGroups);
1 ✔
74
      }
75
      this.priority = options.priority;
1 ✔
76
    }
1 ✔
77

78
    /**
79
     * Total time that a workflow is willing to wait for an Activity to complete.
80
     *
81
     * <p>ScheduleToCloseTimeout limits the total time of an Activity's execution including retries
82
     * (use {@link #setStartToCloseTimeout(Duration)} to limit the time of a single attempt).
83
     *
84
     * <p>Either this option or {@link #setStartToCloseTimeout(Duration)} is required.
85
     *
86
     * <p>Defaults to unlimited, which is chosen if set to null.
87
     */
88
    public Builder setScheduleToCloseTimeout(Duration scheduleToCloseTimeout) {
89
      this.scheduleToCloseTimeout = scheduleToCloseTimeout;
1 ✔
90
      return this;
1 ✔
91
    }
92

93
    /**
94
     * Time that the Activity Task can stay in the Task Queue before it is picked up by a Worker.
95
     *
96
     * <p>ScheduleToStartTimeout is always non-retryable. Retrying after this timeout doesn't make
97
     * sense as it would just put the Activity Task back into the same Task Queue.
98
     *
99
     * <p>Defaults to unlimited.
100
     */
101
    public Builder setScheduleToStartTimeout(Duration scheduleToStartTimeout) {
102
      this.scheduleToStartTimeout = scheduleToStartTimeout;
1 ✔
103
      return this;
1 ✔
104
    }
105

106
    /**
107
     * Maximum time of a single Activity attempt.
108
     *
109
     * <p>Note that the Temporal Server doesn't detect Worker process failures directly. It relies
110
     * on this timeout to detect that an Activity that didn't complete on time. So this timeout
111
     * should be as short as the longest possible execution of the Activity body. Potentially
112
     * long-running Activities must specify HeartbeatTimeout and call {@link
113
     * ActivityExecutionContext#heartbeat(Object)} periodically for timely failure detection.
114
     *
115
     * <p>If {@link #setScheduleToCloseTimeout(Duration)} is not provided, then this timeout is
116
     * required.
117
     */
118
    public Builder setStartToCloseTimeout(Duration startToCloseTimeout) {
119
      this.startToCloseTimeout = startToCloseTimeout;
1 ✔
120
      return this;
1 ✔
121
    }
122

123
    /**
124
     * Heartbeat interval. Activity must call {@link ActivityExecutionContext#heartbeat(Object)}
125
     * before this interval passes after the last heartbeat or the Activity starts.
126
     */
127
    public Builder setHeartbeatTimeout(Duration heartbeatTimeoutSeconds) {
128
      this.heartbeatTimeout = heartbeatTimeoutSeconds;
1 ✔
129
      return this;
1 ✔
130
    }
131

132
    /**
133
     * Task queue to use when dispatching activity task to a worker. By default, it is the same task
134
     * list name the workflow was started with. Default is used if set to {@code null}.
135
     */
136
    public Builder setTaskQueue(String taskQueue) {
137
      this.taskQueue = taskQueue;
1 ✔
138
      return this;
1 ✔
139
    }
140

141
    /**
142
     * RetryOptions that define how an Activity is retried in case of failure.
143
     *
144
     * <p>If not provided, the server-defined default activity retry policy will be used. If not
145
     * overridden, the server default activity retry policy is:
146
     *
147
     * <pre><code>
148
     *   InitialInterval:         1 second
149
     *   BackoffCoefficient:      2
150
     *   MaximumInterval:         100 seconds   // 100 * InitialInterval
151
     *   MaximumAttempts:         0             // Unlimited
152
     *   NonRetryableErrorTypes:  []
153
     * </pre></code>
154
     *
155
     * <p>If both {@link #setScheduleToCloseTimeout(Duration)} and {@link
156
     * RetryOptions.Builder#setMaximumAttempts(int)} are not set, the Activity will not be retried.
157
     *
158
     * <p>To ensure zero retries, set {@link RetryOptions.Builder#setMaximumAttempts(int)} to 1.
159
     */
160
    public Builder setRetryOptions(RetryOptions retryOptions) {
161
      this.retryOptions = retryOptions;
1 ✔
162
      return this;
1 ✔
163
    }
164

165
    /**
166
     * Note: <br>
167
     * This method has extremely limited usage. The majority of users should just set {@link
168
     * WorkflowClientOptions#getContextPropagators()}
169
     *
170
     * <p>Both "client" (workflow worker) and "server" (activity worker) sides of context
171
     * propagation from a workflow to an activity exist in a worker process (potentially the same
172
     * one), so they typically share the same worker options. Specifically, {@code
173
     * ContextPropagator}s specified on {@link
174
     * io.temporal.client.WorkflowClientOptions#getContextPropagators()}. {@link
175
     * io.temporal.client.WorkflowClientOptions.Builder#setContextPropagators(List)} is the right
176
     * place to specify {@code ContextPropagator}s between Workflow and an Activity. <br>
177
     * Specifying context propagators with this method overrides them only on the "client"
178
     * (workflow) side and can't be automatically promoted to the "server" (activity worker), which
179
     * always uses {@code ContextPropagator}s from {@link
180
     * io.temporal.client.WorkflowClientOptions#getContextPropagators()} <br>
181
     * The only legitimate usecase for this method is probably a situation when the specific
182
     * activity is implemented in a different language and in a completely different worker codebase
183
     * and in that case setting a {@code ContextPropagator} that is applied only on a "client" side
184
     * could make sense. <br>
185
     * This is also why there is no equivalent method on {@link LocalActivityOptions}.
186
     *
187
     * @param contextPropagators specifies the list of context propagators to use during propagation
188
     *     from a workflow to the activity with these {@link ActivityOptions}. This list overrides
189
     *     the list specified on {@link
190
     *     io.temporal.client.WorkflowClientOptions#getContextPropagators()}, {@code null} means no
191
     *     overriding
192
     * @see <a href="https://github.com/temporalio/sdk-java/issues/490">Rejected feature reqest for
193
     *     LocalActivityOption#contextPropagators</a>
194
     */
195
    public Builder setContextPropagators(List<ContextPropagator> contextPropagators) {
196
      this.contextPropagators = contextPropagators;
1 ✔
197
      return this;
1 ✔
198
    }
199

200
    /**
201
     * In case of an activity's scope cancellation the corresponding activity stub call fails with a
202
     * {@link CanceledFailure}.
203
     *
204
     * @param cancellationType Defines the activity's stub cancellation mode. The default value is
205
     *     {@link ActivityCancellationType#TRY_CANCEL}
206
     * @see ActivityCancellationType
207
     */
208
    public Builder setCancellationType(ActivityCancellationType cancellationType) {
209
      this.cancellationType = cancellationType;
1 ✔
210
      return this;
1 ✔
211
    }
212

213
    /**
214
     * If set to true, will not request eager execution regardless of worker settings. If false,
215
     * eager execution may still be disabled at the worker level or eager execution may not be
216
     * requested due to lack of available slots.
217
     *
218
     * <p>Eager activity execution means the server returns requested eager activities directly from
219
     * the workflow task back to this worker which is faster than non-eager which may be dispatched
220
     * to a separate worker.
221
     *
222
     * <p>Defaults to false, meaning that eager activity execution will be requested if possible.
223
     */
224
    public Builder setDisableEagerExecution(boolean disableEagerExecution) {
225
      this.disableEagerExecution = disableEagerExecution;
1 ✔
226
      return this;
1 ✔
227
    }
228

229
    /**
230
     * Specifies whether this activity should run on a worker with a compatible Build Id or not. See
231
     * the variants of {@link VersioningIntent}.
232
     *
233
     * @deprecated Use Worker Deployments
234
     */
235
    @Deprecated
236
    public Builder setVersioningIntent(VersioningIntent versioningIntent) {
UNCOV
237
      this.versioningIntent = versioningIntent;
×
UNCOV
238
      return this;
×
239
    }
240

241
    /**
242
     * Single-line fixed summary for this activity that will appear in UI/CLI. This can be in
243
     * single-line Temporal Markdown format.
244
     *
245
     * <p>Default is none/empty.
246
     */
247
    public Builder setSummary(String summary) {
248
      this.summary = summary;
1 ✔
249
      return this;
1 ✔
250
    }
251

252
    /**
253
     * Event Groups to associate with this activity. Calls accumulate.
254
     *
255
     * @see EventGroup
256
     */
257
    @Experimental
258
    public Builder addEventGroups(EventGroup... eventGroups) {
259
      if (eventGroups.length == 0) return this;
1 !
260
      if (this.eventGroups == null) {
1 !
261
        this.eventGroups = new ArrayList<>(eventGroups.length);
1 ✔
262
      }
263
      for (EventGroup group : eventGroups) {
1 ✔
264
        this.eventGroups.add(java.util.Objects.requireNonNull(group, "eventGroups"));
1 ✔
265
      }
266
      return this;
1 ✔
267
    }
268

269
    /**
270
     * Associates the given Event Groups, in addition to any already added. Calls accumulate.
271
     *
272
     * @see EventGroup
273
     */
274
    @Experimental
275
    public Builder addEventGroups(List<EventGroup> eventGroups) {
UNCOV
276
      return addEventGroups(eventGroups.toArray(new EventGroup[0]));
×
277
    }
278

279
    /**
280
     * Optional priority settings that control relative ordering of task processing when tasks are
281
     * backed up in a queue.
282
     *
283
     * <p>Defaults to inheriting priority from the workflow that scheduled the activity.
284
     */
285
    public Builder setPriority(Priority priority) {
286
      this.priority = priority;
1 ✔
287
      return this;
1 ✔
288
    }
289

290
    @SuppressWarnings("deprecation")
291
    public Builder mergeActivityOptions(ActivityOptions override) {
292
      if (override == null) {
1 ✔
293
        return this;
1 ✔
294
      }
295
      this.taskQueue = (override.taskQueue == null) ? this.taskQueue : override.taskQueue;
1 !
296
      this.heartbeatTimeout =
1 ✔
297
          (override.heartbeatTimeout == null) ? this.heartbeatTimeout : override.heartbeatTimeout;
1 ✔
298
      this.retryOptions =
1 ✔
299
          (override.retryOptions == null) ? this.retryOptions : override.retryOptions;
1 ✔
300
      this.scheduleToCloseTimeout =
1 ✔
301
          (override.scheduleToCloseTimeout == null)
1 ✔
302
              ? this.scheduleToCloseTimeout
1 ✔
303
              : override.scheduleToCloseTimeout;
1 ✔
304
      this.startToCloseTimeout =
1 ✔
305
          (override.startToCloseTimeout == null)
1 ✔
306
              ? this.startToCloseTimeout
1 ✔
307
              : override.startToCloseTimeout;
1 ✔
308
      this.scheduleToStartTimeout =
1 ✔
309
          (override.scheduleToStartTimeout == null)
1 ✔
310
              ? this.scheduleToStartTimeout
1 ✔
311
              : override.scheduleToStartTimeout;
1 ✔
312
      this.cancellationType =
1 ✔
313
          (override.cancellationType == null) ? this.cancellationType : override.cancellationType;
1 ✔
314
      if (this.contextPropagators == null) {
1 ✔
315
        this.contextPropagators = override.contextPropagators;
1 ✔
316
      } else if (override.contextPropagators != null) {
1 !
317
        List<ContextPropagator> merged = new ArrayList<>(this.contextPropagators);
1 ✔
318
        merged.addAll(override.contextPropagators);
1 ✔
319
        this.contextPropagators = merged;
1 ✔
320
      }
321
      if (override.versioningIntent != VersioningIntent.VERSIONING_INTENT_UNSPECIFIED) {
1 !
322
        this.versioningIntent = override.versioningIntent;
1 ✔
323
      }
324
      this.summary = (override.summary == null) ? this.summary : override.summary;
1 !
325
      if (!override.eventGroups.isEmpty()) {
1 !
UNCOV
326
        if (this.eventGroups == null) {
×
UNCOV
327
          this.eventGroups = new ArrayList<>(override.eventGroups);
×
328
        } else {
UNCOV
329
          this.eventGroups.addAll(override.eventGroups);
×
330
        }
331
      }
332
      this.priority = (override.priority == null) ? this.priority : override.priority;
1 !
333
      return this;
1 ✔
334
    }
335

336
    /**
337
     * Properties that are set on this builder take precedence over ones found in the annotation.
338
     */
339
    public Builder mergeMethodRetry(MethodRetry r) {
340
      retryOptions = RetryOptions.merge(r, retryOptions);
1 ✔
341
      return this;
1 ✔
342
    }
343

344
    public ActivityOptions build() {
345
      return new ActivityOptions(
1 ✔
346
          heartbeatTimeout,
347
          scheduleToCloseTimeout,
348
          scheduleToStartTimeout,
349
          startToCloseTimeout,
350
          taskQueue,
351
          retryOptions,
352
          contextPropagators,
353
          cancellationType,
354
          disableEagerExecution,
355
          versioningIntent,
356
          summary,
357
          eventGroups,
358
          priority);
359
    }
360

361
    @SuppressWarnings("deprecation")
362
    public ActivityOptions validateAndBuildWithDefaults() {
363
      return new ActivityOptions(
1 ✔
364
          heartbeatTimeout,
365
          scheduleToCloseTimeout,
366
          scheduleToStartTimeout,
367
          startToCloseTimeout,
368
          taskQueue,
369
          retryOptions,
370
          contextPropagators,
371
          cancellationType == null ? ActivityCancellationType.TRY_CANCEL : cancellationType,
1 ✔
372
          disableEagerExecution,
373
          versioningIntent == null
1 ✔
374
              ? VersioningIntent.VERSIONING_INTENT_UNSPECIFIED
1 ✔
375
              : versioningIntent,
1 ✔
376
          summary,
377
          eventGroups,
378
          priority);
379
    }
380
  }
381

382
  private final Duration heartbeatTimeout;
383
  private final Duration scheduleToCloseTimeout;
384
  private final Duration scheduleToStartTimeout;
385
  private final Duration startToCloseTimeout;
386
  private final String taskQueue;
387
  private final RetryOptions retryOptions;
388
  private final List<ContextPropagator> contextPropagators;
389
  private final ActivityCancellationType cancellationType;
390
  private final boolean disableEagerExecution;
391

392
  @SuppressWarnings("deprecation")
393
  private final VersioningIntent versioningIntent;
394

395
  private final String summary;
396
  private final List<EventGroup> eventGroups;
397
  private final Priority priority;
398

399
  private ActivityOptions(
400
      Duration heartbeatTimeout,
401
      Duration scheduleToCloseTimeout,
402
      Duration scheduleToStartTimeout,
403
      Duration startToCloseTimeout,
404
      String taskQueue,
405
      RetryOptions retryOptions,
406
      List<ContextPropagator> contextPropagators,
407
      ActivityCancellationType cancellationType,
408
      boolean disableEagerExecution,
409
      @SuppressWarnings("deprecation") VersioningIntent versioningIntent,
410
      String summary,
411
      List<EventGroup> eventGroups,
412
      Priority priority) {
1 ✔
413
    this.heartbeatTimeout = heartbeatTimeout;
1 ✔
414
    this.scheduleToStartTimeout = scheduleToStartTimeout;
1 ✔
415
    this.scheduleToCloseTimeout = scheduleToCloseTimeout;
1 ✔
416
    this.startToCloseTimeout = startToCloseTimeout;
1 ✔
417
    this.taskQueue = taskQueue;
1 ✔
418
    this.retryOptions = retryOptions;
1 ✔
419
    this.contextPropagators = contextPropagators;
1 ✔
420
    this.cancellationType = cancellationType;
1 ✔
421
    this.disableEagerExecution = disableEagerExecution;
1 ✔
422
    this.versioningIntent = versioningIntent;
1 ✔
423
    this.summary = summary;
1 ✔
424
    this.eventGroups =
1 ✔
425
        eventGroups == null || eventGroups.isEmpty()
1 !
426
            ? Collections.emptyList()
1 ✔
427
            : Collections.unmodifiableList(new ArrayList<>(eventGroups));
1 ✔
428
    this.priority = priority;
1 ✔
429
  }
1 ✔
430

431
  /**
432
   * @see ActivityOptions.Builder#setHeartbeatTimeout(Duration)
433
   */
434
  public Duration getHeartbeatTimeout() {
435
    return heartbeatTimeout;
1 ✔
436
  }
437

438
  /**
439
   * @see ActivityOptions.Builder#setScheduleToCloseTimeout(Duration)
440
   */
441
  public Duration getScheduleToCloseTimeout() {
442
    return scheduleToCloseTimeout;
1 ✔
443
  }
444

445
  /**
446
   * @see ActivityOptions.Builder#setScheduleToStartTimeout(Duration)
447
   */
448
  public Duration getScheduleToStartTimeout() {
449
    return scheduleToStartTimeout;
1 ✔
450
  }
451

452
  /**
453
   * @see ActivityOptions.Builder#setStartToCloseTimeout(Duration)
454
   */
455
  public Duration getStartToCloseTimeout() {
456
    return startToCloseTimeout;
1 ✔
457
  }
458

459
  /**
460
   * @see ActivityOptions.Builder#setTaskQueue(String)
461
   */
462
  public String getTaskQueue() {
463
    return taskQueue;
1 ✔
464
  }
465

466
  /**
467
   * @see ActivityOptions.Builder#setRetryOptions(RetryOptions)
468
   */
469
  public RetryOptions getRetryOptions() {
470
    return retryOptions;
1 ✔
471
  }
472

473
  /**
474
   * @see ActivityOptions.Builder#setContextPropagators(List)
475
   */
476
  public List<ContextPropagator> getContextPropagators() {
477
    return contextPropagators;
1 ✔
478
  }
479

480
  /**
481
   * @see ActivityOptions.Builder#setCancellationType(ActivityCancellationType)
482
   */
483
  public ActivityCancellationType getCancellationType() {
484
    return cancellationType;
1 ✔
485
  }
486

487
  public boolean isEagerExecutionDisabled() {
488
    return disableEagerExecution;
1 ✔
489
  }
490

491
  /**
492
   * @see ActivityOptions.Builder#setVersioningIntent(VersioningIntent)
493
   * @deprecated Worker Versioning is now deprecated please migrate to the <a
494
   *     href="https://docs.temporal.io/worker-deployments">Worker Deployment API</a>.
495
   */
496
  @Deprecated
497
  public VersioningIntent getVersioningIntent() {
498
    return versioningIntent;
1 ✔
499
  }
500

501
  public String getSummary() {
502
    return summary;
1 ✔
503
  }
504

505
  /**
506
   * @see ActivityOptions.Builder#addEventGroups(EventGroup...)
507
   */
508
  @Experimental
509
  public List<EventGroup> getEventGroups() {
510
    return eventGroups;
1 ✔
511
  }
512

513
  public Priority getPriority() {
514
    return priority;
1 ✔
515
  }
516

517
  public Builder toBuilder() {
518
    return new Builder(this);
1 ✔
519
  }
520

521
  @Override
522
  public boolean equals(Object o) {
523
    if (this == o) return true;
1 ✔
524
    if (o == null || getClass() != o.getClass()) return false;
1 !
525
    ActivityOptions that = (ActivityOptions) o;
1 ✔
526
    return cancellationType == that.cancellationType
1 !
527
        && Objects.equal(heartbeatTimeout, that.heartbeatTimeout)
1 !
528
        && Objects.equal(scheduleToCloseTimeout, that.scheduleToCloseTimeout)
1 !
529
        && Objects.equal(scheduleToStartTimeout, that.scheduleToStartTimeout)
1 !
530
        && Objects.equal(startToCloseTimeout, that.startToCloseTimeout)
1 !
531
        && Objects.equal(taskQueue, that.taskQueue)
1 !
532
        && Objects.equal(retryOptions, that.retryOptions)
1 !
533
        && Objects.equal(contextPropagators, that.contextPropagators)
1 !
534
        && disableEagerExecution == that.disableEagerExecution
535
        && versioningIntent == that.versioningIntent
536
        && Objects.equal(summary, that.summary)
1 !
537
        && Objects.equal(eventGroups, that.eventGroups)
1 !
538
        && Objects.equal(priority, that.priority);
1 !
539
  }
540

541
  @Override
542
  public int hashCode() {
UNCOV
543
    return Objects.hashCode(
×
544
        heartbeatTimeout,
545
        scheduleToCloseTimeout,
546
        scheduleToStartTimeout,
547
        startToCloseTimeout,
548
        taskQueue,
549
        retryOptions,
550
        contextPropagators,
551
        cancellationType,
UNCOV
552
        disableEagerExecution,
×
553
        versioningIntent,
554
        summary,
555
        eventGroups,
556
        priority);
557
  }
558

559
  @Override
560
  public String toString() {
UNCOV
561
    return "ActivityOptions{"
×
562
        + "heartbeatTimeout="
563
        + heartbeatTimeout
564
        + ", scheduleToCloseTimeout="
565
        + scheduleToCloseTimeout
566
        + ", scheduleToStartTimeout="
567
        + scheduleToStartTimeout
568
        + ", startToCloseTimeout="
569
        + startToCloseTimeout
570
        + ", taskQueue='"
571
        + taskQueue
572
        + '\''
573
        + ", retryOptions="
574
        + retryOptions
575
        + ", contextPropagators="
576
        + contextPropagators
577
        + ", abandonOnCancellation="
578
        + cancellationType
579
        + ", disableEagerExecution="
580
        + disableEagerExecution
581
        + ", versioningIntent="
582
        + versioningIntent
583
        + ", summary="
584
        + summary
585
        + ", eventGroups="
586
        + eventGroups
587
        + ", priority="
588
        + priority
589
        + '}';
590
  }
591
}
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