Class POJOWorkflowImplementationFactory
java.lang.Object
io.temporal.internal.sync.POJOWorkflowImplementationFactory
- All Implemented Interfaces:
ReplayWorkflowFactory
public final class POJOWorkflowImplementationFactory
extends Object
implements ReplayWorkflowFactory
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPOJOWorkflowImplementationFactory(SingleWorkerOptions singleWorkerOptions, WorkflowThreadExecutor workflowThreadExecutor, WorkerInterceptor[] workerInterceptors, WorkflowExecutorCache cache, String namespace) -
Method Summary
Modifier and TypeMethodDescription<R> voidaddWorkflowImplementationFactory(WorkflowImplementationOptions options, Class<R> clazz, Functions.Func1<EncodedValues, R> factory) getWorkflow(io.temporal.api.common.v1.WorkflowType workflowType, io.temporal.api.common.v1.WorkflowExecution workflowExecution) booleanvoidregisterWorkflowImplementationTypes(WorkflowImplementationOptions options, Class<?>[] workflowImplementationTypes) toString()static <T> voidvalidateVersioningBehavior(Class<T> workflowImplementationClass, POJOWorkflowMethodMetadata workflowMethod, VersioningBehavior defaultVersioningBehavior, boolean workerVersioningEnabled)
-
Field Details
-
WORKFLOW_HANDLER_STACKTRACE_CUTOFF
public static final com.google.common.collect.ImmutableSet<String> WORKFLOW_HANDLER_STACKTRACE_CUTOFF
-
-
Constructor Details
-
POJOWorkflowImplementationFactory
public POJOWorkflowImplementationFactory(SingleWorkerOptions singleWorkerOptions, WorkflowThreadExecutor workflowThreadExecutor, WorkerInterceptor[] workerInterceptors, WorkflowExecutorCache cache, @Nonnull String namespace)
-
-
Method Details
-
registerWorkflowImplementationTypes
public void registerWorkflowImplementationTypes(WorkflowImplementationOptions options, Class<?>[] workflowImplementationTypes) -
addWorkflowImplementationFactory
public <R> void addWorkflowImplementationFactory(WorkflowImplementationOptions options, Class<R> clazz, Functions.Func1<EncodedValues, R> factory) - Parameters:
clazz- has to be a workflow interface class. The only exception is if it's a DynamicWorkflow class.
-
getWorkflow
public ReplayWorkflow getWorkflow(io.temporal.api.common.v1.WorkflowType workflowType, io.temporal.api.common.v1.WorkflowExecution workflowExecution) - Specified by:
getWorkflowin interfaceReplayWorkflowFactory
-
isAnyTypeSupported
public boolean isAnyTypeSupported()- Specified by:
isAnyTypeSupportedin interfaceReplayWorkflowFactory
-
toString
-
validateVersioningBehavior
public static <T> void validateVersioningBehavior(Class<T> workflowImplementationClass, POJOWorkflowMethodMetadata workflowMethod, VersioningBehavior defaultVersioningBehavior, boolean workerVersioningEnabled)
-