Class ShadowingOptions.Builder

  • Enclosing class:
    ShadowingOptions

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

      • setDomain

        public ShadowingOptions.Builder setDomain​(java.lang.String domain)
        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
      • setConcurrency

        public ShadowingOptions.Builder setConcurrency​(int concurrency)
        Optional: the concurrent number of replay execution