public static class WorkerFactoryOptions.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
WorkerFactoryOptions |
build() |
WorkerFactoryOptions.Builder |
setDisableStickyExecution(boolean disableStickyExecution)
When set to false it will create an affinity between the worker and the workflow run it's
processing.
|
WorkerFactoryOptions.Builder |
setEnableLoggingInReplay(boolean enableLoggingInReplay) |
WorkerFactoryOptions.Builder |
setMaxWorkflowThreadCount(int maxWorkflowThreadCount)
Maximum number of threads available for workflow execution across all workers created by the
Factory.
|
WorkerFactoryOptions.Builder |
setStickyCacheSize(int stickyCacheSize)
When Sticky execution is enabled this will set the maximum allowed number of workflows
cached.
|
WorkerFactoryOptions.Builder |
setStickyPollerCount(int stickyPollerCount)
PollerOptions for poller responsible for polling for decisions for workflows cached by all
workers created by this factory.
|
WorkerFactoryOptions.Builder |
setStickyTaskScheduleToStartTimeout(java.time.Duration stickyTaskScheduleToStartTimeout)
Timeout for sticky workflow decision to be picked up by the host assigned to it.
|
public WorkerFactoryOptions.Builder setDisableStickyExecution(boolean disableStickyExecution)
public WorkerFactoryOptions.Builder setStickyCacheSize(int stickyCacheSize)
Default value is 600.
public WorkerFactoryOptions.Builder setMaxWorkflowThreadCount(int maxWorkflowThreadCount)
Default value is 600.
public WorkerFactoryOptions.Builder setStickyTaskScheduleToStartTimeout(java.time.Duration stickyTaskScheduleToStartTimeout)
public WorkerFactoryOptions.Builder setStickyPollerCount(int stickyPollerCount)
public WorkerFactoryOptions.Builder setEnableLoggingInReplay(boolean enableLoggingInReplay)
public WorkerFactoryOptions build()