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 LocalActivityOptionsbuild()LocalActivityOptions.BuildermergeActivityOptions(LocalActivityOptions override)LocalActivityOptions.BuildersetDoNotIncludeArgumentsIntoMarker(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.BuildersetLocalRetryThreshold(java.time.Duration localRetryThreshold)Maximum time to retry locally, while keeping the Workflow Task open via a Heartbeat.LocalActivityOptions.BuildersetMethodRetry(MethodRetry r)MergesMethodRetryannotation.LocalActivityOptions.BuildersetRetryOptions(RetryOptions retryOptions)RetryOptionsthat define how an Activity is retried in case of failure.LocalActivityOptions.BuildersetScheduleToCloseTimeout(java.time.Duration timeout)Overall time a Workflow is willing to wait for an Activity's completion.LocalActivityOptions.BuildersetStartToCloseTimeout(java.time.Duration timeout)LocalActivityOptionsvalidateAndBuildWithDefaults()
-
-
-
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)
RetryOptionsthat 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)
MergesMethodRetryannotation. 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()
-
-