Package com.uber.cadence.testing
Class TestEnvironmentOptions.Builder
- java.lang.Object
-
- com.uber.cadence.testing.TestEnvironmentOptions.Builder
-
- Enclosing class:
- TestEnvironmentOptions
public static final class TestEnvironmentOptions.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestEnvironmentOptions
build()
TestEnvironmentOptions.Builder
setDataConverter(DataConverter dataConverter)
Sets data converter to use for unit-tests.TestEnvironmentOptions.Builder
setEnableLoggingInReplay(boolean enableLoggingInReplay)
Set whether to log during decision replay.TestEnvironmentOptions.Builder
setInterceptorFactory(java.util.function.Function<WorkflowInterceptor,WorkflowInterceptor> interceptorFactory)
Specifies an interceptor factory that creates interceptors for workflow calls like activity invocations.TestEnvironmentOptions.Builder
setWorkerFactoryOptions(WorkerFactoryOptions options)
Set factoryOptions for worker factory used to create workers.TestEnvironmentOptions.Builder
setWorkflowClientOptions(WorkflowClientOptions workflowClientOptions)
-
-
-
Method Detail
-
setWorkflowClientOptions
public TestEnvironmentOptions.Builder setWorkflowClientOptions(WorkflowClientOptions workflowClientOptions)
-
setDataConverter
public TestEnvironmentOptions.Builder setDataConverter(DataConverter dataConverter)
Sets data converter to use for unit-tests. Default isJsonDataConverter
.
-
setInterceptorFactory
public TestEnvironmentOptions.Builder setInterceptorFactory(java.util.function.Function<WorkflowInterceptor,WorkflowInterceptor> interceptorFactory)
Specifies an interceptor factory that creates interceptors for workflow calls like activity invocations. Note that the factory is called for each decision and must return a new object instance every time it is called.
-
setWorkerFactoryOptions
public TestEnvironmentOptions.Builder setWorkerFactoryOptions(WorkerFactoryOptions options)
Set factoryOptions for worker factory used to create workers.
-
setEnableLoggingInReplay
public TestEnvironmentOptions.Builder setEnableLoggingInReplay(boolean enableLoggingInReplay)
Set whether to log during decision replay.
-
build
public TestEnvironmentOptions build()
-
-