Class LocalActivityOptions.Builder

  • Enclosing class:
    LocalActivityOptions

    public static final class LocalActivityOptions.Builder
    extends java.lang.Object
    • Method Detail

      • setScheduleToStartTimeout

        public LocalActivityOptions.Builder setScheduleToStartTimeout​(java.time.Duration timeout)
        Time that the Activity Task can stay in the Worker's internal Task Queue of Local Activities until it's picked up by the Local Activity Executor.

        ScheduleToStartTimeout is always non-retryable. Retrying after this timeout doesn't make sense as it would just put the Activity Task back into the same Task Queue.

        Defaults to unlimited.

      • setLocalRetryThreshold

        public LocalActivityOptions.Builder setLocalRetryThreshold​(java.time.Duration localRetryThreshold)
        Maximum time to wait between retries locally, while keeping the Workflow Task open via a Heartbeat. If the delay between the attempts becomes larger that this threshold, a Workflow Timer will be scheduled. Default value is Workflow Task Timeout multiplied by 3.
      • 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.