Package com.uber.cadence.internal.worker
Class SingleWorkerOptions.Builder
- java.lang.Object
-
- com.uber.cadence.internal.worker.SingleWorkerOptions.Builder
-
- Enclosing class:
- SingleWorkerOptions
public static final class SingleWorkerOptions.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder(SingleWorkerOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleWorkerOptions
build()
SingleWorkerOptions.Builder
setContextPropagators(java.util.List<ContextPropagator> contextPropagators)
Specifies the list of context propagators to use during this workflow.SingleWorkerOptions.Builder
setDataConverter(DataConverter dataConverter)
SingleWorkerOptions.Builder
setEnableLoggingInReplay(boolean enableLoggingInReplay)
SingleWorkerOptions.Builder
setIdentity(java.lang.String identity)
SingleWorkerOptions.Builder
setMetricsScope(com.uber.m3.tally.Scope metricsScope)
SingleWorkerOptions.Builder
setPollerOptions(PollerOptions pollerOptions)
SingleWorkerOptions.Builder
setTaskExecutorThreadPoolSize(int taskExecutorThreadPoolSize)
SingleWorkerOptions.Builder
setTaskListActivitiesPerSecond(double taskListActivitiesPerSecond)
-
-
-
Constructor Detail
-
Builder
public Builder(SingleWorkerOptions options)
-
-
Method Detail
-
setIdentity
public SingleWorkerOptions.Builder setIdentity(java.lang.String identity)
-
setDataConverter
public SingleWorkerOptions.Builder setDataConverter(DataConverter dataConverter)
-
setTaskExecutorThreadPoolSize
public SingleWorkerOptions.Builder setTaskExecutorThreadPoolSize(int taskExecutorThreadPoolSize)
-
setPollerOptions
public SingleWorkerOptions.Builder setPollerOptions(PollerOptions pollerOptions)
-
setMetricsScope
public SingleWorkerOptions.Builder setMetricsScope(com.uber.m3.tally.Scope metricsScope)
-
setEnableLoggingInReplay
public SingleWorkerOptions.Builder setEnableLoggingInReplay(boolean enableLoggingInReplay)
-
setTaskListActivitiesPerSecond
public SingleWorkerOptions.Builder setTaskListActivitiesPerSecond(double taskListActivitiesPerSecond)
-
setContextPropagators
public SingleWorkerOptions.Builder setContextPropagators(java.util.List<ContextPropagator> contextPropagators)
Specifies the list of context propagators to use during this workflow.
-
build
public SingleWorkerOptions build()
-
-