Package com.uber.cadence.worker
Class ShadowingOptions.Builder
- java.lang.Object
-
- com.uber.cadence.worker.ShadowingOptions.Builder
-
- Enclosing class:
- ShadowingOptions
public static final class ShadowingOptions.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShadowingOptions
build()
ShadowingOptions.Builder
setConcurrency(int concurrency)
Optional: the concurrent number of replay executionShadowingOptions.Builder
setDomain(java.lang.String domain)
The domain to start workflow shadowing.ShadowingOptions.Builder
setExitCondition(ExitCondition exitCondition)
Optional: the exit condition is to define the shadowing exit condition.ShadowingOptions.Builder
setShadowMode(Mode mode)
The domain to start workflow shadowing.ShadowingOptions.Builder
setWorkflowQuery(java.lang.String workflowQuery)
Optional: The workflow query is to filter the shadowed workflows with advanced query.ShadowingOptions.Builder
setWorkflowSamplingRate(double samplingRate)
Optional: The sampling rate is to define sampling rate of the shadowed workflows.ShadowingOptions.Builder
setWorkflowStartTimeFilter(TimeFilter workflowStartTimeFilter)
Optional: The workflow start time filter is to filter the shadowed workflows by workflow start time.ShadowingOptions.Builder
setWorkflowStatuses(java.util.Collection<WorkflowStatus> workflowStatuses)
The workflow closed statuses is to filter the shadowed workflows by workflow status.ShadowingOptions.Builder
setWorkflowTypes(java.util.Collection<java.lang.String> workflowTypes)
Optional: The workflow types is to filter the workflows to be shadowed by workflow types.
-
-
-
Method Detail
-
setDomain
public ShadowingOptions.Builder setDomain(java.lang.String domain)
The domain to start workflow shadowing.
-
setShadowMode
public ShadowingOptions.Builder setShadowMode(Mode mode)
The domain to start workflow shadowing.
-
setWorkflowQuery
public ShadowingOptions.Builder setWorkflowQuery(java.lang.String workflowQuery)
Optional: The workflow query is to filter the shadowed workflows with advanced query. If the query is set, the workflow types, workflow start time, workflow statuses will be ignore.
-
setWorkflowTypes
public ShadowingOptions.Builder setWorkflowTypes(java.util.Collection<java.lang.String> workflowTypes)
Optional: The workflow types is to filter the workflows to be shadowed by workflow types.
-
setWorkflowStartTimeFilter
public ShadowingOptions.Builder setWorkflowStartTimeFilter(TimeFilter workflowStartTimeFilter)
Optional: The workflow start time filter is to filter the shadowed workflows by workflow start time.
-
setWorkflowStatuses
public ShadowingOptions.Builder setWorkflowStatuses(java.util.Collection<WorkflowStatus> workflowStatuses)
The workflow closed statuses is to filter the shadowed workflows by workflow status. The default status is OPEN. The options are OPEN, CLOSED, COMPLETED, CANCELED, CONTINUED_AS_NEW, FAILED, TERMINATED, TIMED_OUT.
-
setWorkflowSamplingRate
public ShadowingOptions.Builder setWorkflowSamplingRate(double samplingRate)
Optional: The sampling rate is to define sampling rate of the shadowed workflows. Default: 1.0
-
setExitCondition
public ShadowingOptions.Builder setExitCondition(ExitCondition exitCondition)
Optional: the exit condition is to define the shadowing exit condition.
-
setConcurrency
public ShadowingOptions.Builder setConcurrency(int concurrency)
Optional: the concurrent number of replay execution
-
build
public ShadowingOptions build()
-
-