Class WorkflowInboundCallsInterceptorBase
java.lang.Object
io.temporal.common.interceptors.WorkflowInboundCallsInterceptorBase
- All Implemented Interfaces:
WorkflowInboundCallsInterceptor
public class WorkflowInboundCallsInterceptorBase
extends Object
implements WorkflowInboundCallsInterceptor
Convenience base class for WorkflowInboundCallsInterceptor implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.temporal.common.interceptors.WorkflowInboundCallsInterceptor
WorkflowInboundCallsInterceptor.QueryInput, WorkflowInboundCallsInterceptor.QueryOutput, WorkflowInboundCallsInterceptor.SignalInput, WorkflowInboundCallsInterceptor.UpdateInput, WorkflowInboundCallsInterceptor.UpdateOutput, WorkflowInboundCallsInterceptor.WorkflowInput, WorkflowInboundCallsInterceptor.WorkflowOutput -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCalled when workflow main method is called.Called when update workflow execution request is delivered to a workflow execution, after passing the validator.Called when a workflow is queried.voidCalled when signal is delivered to a workflow execution.voidinit(WorkflowOutboundCallsInterceptor outboundCalls) Called when workflow class is instantiated.newCallbackThread(Runnable runnable, String name) Intercepts creation of a workflow callback threadnewWorkflowMethodThread(Runnable runnable, String name) Intercepts creation of the workflow main method threadvoidCalled when update workflow execution request is delivered to a workflow execution, before the update is executed.
-
Constructor Details
-
WorkflowInboundCallsInterceptorBase
-
-
Method Details
-
init
Description copied from interface:WorkflowInboundCallsInterceptorCalled when workflow class is instantiated. May create aWorkflowOutboundCallsInterceptorinstance. The instance must forward all the calls tooutboundCalls, but it may change the input parameters.The instance should be passed into the {next.init(newWorkflowOutboundCallsInterceptor)}.
See
WorkerInterceptor.interceptWorkflow(io.temporal.common.interceptors.WorkflowInboundCallsInterceptor)for the definition of "next"WorkflowInboundCallsInterceptor.- Specified by:
initin interfaceWorkflowInboundCallsInterceptor- Parameters:
outboundCalls- an existing interceptor instance to be proxied by the interceptor created inside this method
-
execute
public WorkflowInboundCallsInterceptor.WorkflowOutput execute(WorkflowInboundCallsInterceptor.WorkflowInput input) Description copied from interface:WorkflowInboundCallsInterceptorCalled when workflow main method is called.- Specified by:
executein interfaceWorkflowInboundCallsInterceptor- Returns:
- result of the workflow execution.
-
handleSignal
Description copied from interface:WorkflowInboundCallsInterceptorCalled when signal is delivered to a workflow execution.- Specified by:
handleSignalin interfaceWorkflowInboundCallsInterceptor
-
handleQuery
public WorkflowInboundCallsInterceptor.QueryOutput handleQuery(WorkflowInboundCallsInterceptor.QueryInput input) Description copied from interface:WorkflowInboundCallsInterceptorCalled when a workflow is queried.- Specified by:
handleQueryin interfaceWorkflowInboundCallsInterceptor
-
validateUpdate
Description copied from interface:WorkflowInboundCallsInterceptorCalled when update workflow execution request is delivered to a workflow execution, before the update is executed.- Specified by:
validateUpdatein interfaceWorkflowInboundCallsInterceptor
-
executeUpdate
public WorkflowInboundCallsInterceptor.UpdateOutput executeUpdate(WorkflowInboundCallsInterceptor.UpdateInput input) Description copied from interface:WorkflowInboundCallsInterceptorCalled when update workflow execution request is delivered to a workflow execution, after passing the validator.- Specified by:
executeUpdatein interfaceWorkflowInboundCallsInterceptor
-
newWorkflowMethodThread
Description copied from interface:WorkflowInboundCallsInterceptorIntercepts creation of the workflow main method thread- Specified by:
newWorkflowMethodThreadin interfaceWorkflowInboundCallsInterceptor- Parameters:
runnable- thread function to runname- name of the thread, optional- Returns:
- created workflow thread. Should be treated as a pass-through object that shouldn't be manipulated in any way by the interceptor code.
-
newCallbackThread
Description copied from interface:WorkflowInboundCallsInterceptorIntercepts creation of a workflow callback thread- Specified by:
newCallbackThreadin interfaceWorkflowInboundCallsInterceptor- Parameters:
runnable- thread function to runname- name of the thread, optional- Returns:
- created workflow thread. Should be treated as a pass-through object that shouldn't be manipulated in any way by the interceptor code.
-