Class WorkflowClientOptions.Builder

  • Enclosing class:
    WorkflowClientOptions

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

      • setIdentity

        public WorkflowClientOptions.Builder setIdentity​(java.lang.String identity)
        Override human readable identity of the worker. Identity is used to identify a worker and is recorded in the workflow history events. For example when a worker gets an activity task the correspondent ActivityTaskStarted event contains the worker identity as a field. Default is whatever (ManagementFactory.getRuntimeMXBean().getName() returns.
      • setBinaryChecksum

        @Deprecated
        public WorkflowClientOptions.Builder setBinaryChecksum​(java.lang.String binaryChecksum)
        Sets worker binary checksum, which gets propagated in all history events and can be used for auto-reset assuming that every build has a new unique binary checksum. Can be null.
      • setContextPropagators

        public WorkflowClientOptions.Builder setContextPropagators​(java.util.List<ContextPropagator> contextPropagators)
        Parameters:
        contextPropagators - specifies the list of context propagators to use with the client.
      • setQueryRejectCondition

        public WorkflowClientOptions.Builder setQueryRejectCondition​(io.temporal.api.enums.v1.QueryRejectCondition queryRejectCondition)
        Should a query be rejected by closed and failed workflows.

        Default is QueryRejectCondition.QUERY_REJECT_CONDITION_UNSPECIFIED which means that closed and failed workflows are still queryable.