Class LocalActivityOptions.Builder

  • Enclosing class:
    LocalActivityOptions

    public static final class LocalActivityOptions.Builder
    extends java.lang.Object
    • 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.
      • 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.