Class WorkerFactoryOptions

java.lang.Object
io.temporal.worker.WorkerFactoryOptions

public class WorkerFactoryOptions extends Object
  • Method Details

    • newBuilder

      public static WorkerFactoryOptions.Builder newBuilder()
    • newBuilder

      public static WorkerFactoryOptions.Builder newBuilder(WorkerFactoryOptions options)
    • getDefaultInstance

      public static WorkerFactoryOptions getDefaultInstance()
    • getWorkflowCacheSize

      public int getWorkflowCacheSize()
    • getMaxWorkflowThreadCount

      public int getMaxWorkflowThreadCount()
    • getWorkflowHostLocalTaskQueueScheduleToStartTimeout

      @Nullable public Duration getWorkflowHostLocalTaskQueueScheduleToStartTimeout()
    • getWorkerInterceptors

      public WorkerInterceptor[] getWorkerInterceptors()
    • getPlugins

      @Experimental public WorkerPlugin[] getPlugins()
      Returns the worker plugins configured for this factory.
      Returns:
      the array of worker plugins, never null
    • isEnableLoggingInReplay

      public boolean isEnableLoggingInReplay()
    • isUsingVirtualWorkflowThreads

      @Experimental public boolean isUsingVirtualWorkflowThreads()
    • getShutdownCheckInterval

      @Experimental public Duration getShutdownCheckInterval()
      Returns the interval between polls when checking for executor termination during shutdown.
      Returns:
      the configured shutdown check interval
    • getWorkflowHostLocalPollThreadCount

      @Deprecated public int getWorkflowHostLocalPollThreadCount()
      Deprecated.
      not used anymore by JavaSDK, this value doesn't have any effect
    • toBuilder

      public WorkerFactoryOptions.Builder toBuilder()