Package io.temporal.activity
Class LocalActivityOptions.Builder
- java.lang.Object
-
- io.temporal.activity.LocalActivityOptions.Builder
-
- Enclosing class:
- LocalActivityOptions
public static final class LocalActivityOptions.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalActivityOptions
build()
LocalActivityOptions.Builder
mergeActivityOptions(LocalActivityOptions override)
LocalActivityOptions.Builder
setDoNotIncludeArgumentsIntoMarker(boolean doNotIncludeArgumentsIntoMarker)
When set to true, the serialized arguments of the local Activity are not included in the Marker Event that stores the local Activity's invocation result.LocalActivityOptions.Builder
setLocalRetryThreshold(java.time.Duration localRetryThreshold)
Maximum time to retry locally, while keeping the Workflow Task open via a Heartbeat.LocalActivityOptions.Builder
setMethodRetry(MethodRetry r)
MergesMethodRetry
annotation.LocalActivityOptions.Builder
setRetryOptions(RetryOptions retryOptions)
RetryOptions
that define how an Activity is retried in case of failure.LocalActivityOptions.Builder
setScheduleToCloseTimeout(java.time.Duration timeout)
Overall time a Workflow is willing to wait for an Activity's completion.LocalActivityOptions.Builder
setStartToCloseTimeout(java.time.Duration timeout)
LocalActivityOptions
validateAndBuildWithDefaults()
-
-
-
Method Detail
-
setScheduleToCloseTimeout
public LocalActivityOptions.Builder setScheduleToCloseTimeout(java.time.Duration timeout)
Overall time a Workflow is willing to wait for an Activity's completion. This includes all retries.
-
setLocalRetryThreshold
public LocalActivityOptions.Builder setLocalRetryThreshold(java.time.Duration localRetryThreshold)
Maximum time to retry locally, while keeping the Workflow Task open via a Heartbeat. Default value is Workflow Task timeout multiplied by 6.
-
setStartToCloseTimeout
public LocalActivityOptions.Builder setStartToCloseTimeout(java.time.Duration timeout)
-
mergeActivityOptions
public LocalActivityOptions.Builder mergeActivityOptions(LocalActivityOptions override)
-
setRetryOptions
public LocalActivityOptions.Builder setRetryOptions(RetryOptions retryOptions)
RetryOptions
that define how an Activity is retried in case of failure. Activities use a default RetryPolicy if not provided.
-
setMethodRetry
public LocalActivityOptions.Builder setMethodRetry(MethodRetry r)
MergesMethodRetry
annotation. The values of this builder take precedence over annotated ones.
-
setDoNotIncludeArgumentsIntoMarker
public LocalActivityOptions.Builder setDoNotIncludeArgumentsIntoMarker(boolean doNotIncludeArgumentsIntoMarker)
When set to true, the serialized arguments of the local Activity are not included in the Marker Event that stores the local Activity's invocation result. The serialized arguments are included only for human troubleshooting as they are never read by the SDK code. In some cases, it is better to not include them to reduce the history size. The default value is set to false.
-
build
public LocalActivityOptions build()
-
validateAndBuildWithDefaults
public LocalActivityOptions validateAndBuildWithDefaults()
-
-