Package io.temporal.common.interceptors
Class WorkflowInboundCallsInterceptorBase
- java.lang.Object
-
- io.temporal.common.interceptors.WorkflowInboundCallsInterceptorBase
-
- All Implemented Interfaces:
WorkflowInboundCallsInterceptor
public class WorkflowInboundCallsInterceptorBase extends java.lang.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 Constructor Description WorkflowInboundCallsInterceptorBase(WorkflowInboundCallsInterceptor next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowInboundCallsInterceptor.WorkflowOutputexecute(WorkflowInboundCallsInterceptor.WorkflowInput input)Called when workflow main method is called.WorkflowInboundCallsInterceptor.UpdateOutputexecuteUpdate(WorkflowInboundCallsInterceptor.UpdateInput input)Called when update workflow execution request is delivered to a workflow execution, after passing the validator.WorkflowInboundCallsInterceptor.QueryOutputhandleQuery(WorkflowInboundCallsInterceptor.QueryInput input)Called when a workflow is queried.voidhandleSignal(WorkflowInboundCallsInterceptor.SignalInput input)Called when signal is delivered to a workflow execution.voidinit(WorkflowOutboundCallsInterceptor outboundCalls)Called when workflow class is instantiated.java.lang.ObjectnewCallbackThread(java.lang.Runnable runnable, java.lang.String name)Intercepts creation of a workflow callback threadjava.lang.ObjectnewWorkflowMethodThread(java.lang.Runnable runnable, java.lang.String name)Intercepts creation of the workflow main method threadvoidvalidateUpdate(WorkflowInboundCallsInterceptor.UpdateInput input)Called when update workflow execution request is delivered to a workflow execution, before the update is executed.
-
-
-
Constructor Detail
-
WorkflowInboundCallsInterceptorBase
public WorkflowInboundCallsInterceptorBase(WorkflowInboundCallsInterceptor next)
-
-
Method Detail
-
init
public void init(WorkflowOutboundCallsInterceptor outboundCalls)
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)}.
- Specified by:
initin interfaceWorkflowInboundCallsInterceptor- Parameters:
outboundCalls- an existing interceptor instance to be proxied by the interceptor created inside this method- See Also:
for the definition of "next"
-
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
public void handleSignal(WorkflowInboundCallsInterceptor.SignalInput input)
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
public void validateUpdate(WorkflowInboundCallsInterceptor.UpdateInput input)
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
@Nonnull public java.lang.Object newWorkflowMethodThread(java.lang.Runnable runnable, java.lang.String name)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
@Nonnull public java.lang.Object newCallbackThread(java.lang.Runnable runnable, java.lang.String name)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.
-
-