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.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.WorkflowOutput
execute(WorkflowInboundCallsInterceptor.WorkflowInput input)
Called when workflow main method is called.WorkflowInboundCallsInterceptor.QueryOutput
handleQuery(WorkflowInboundCallsInterceptor.QueryInput input)
Called when a workflow is queried.void
handleSignal(WorkflowInboundCallsInterceptor.SignalInput input)
Called when signal is delivered to a workflow execution.void
init(WorkflowOutboundCallsInterceptor outboundCalls)
Called when workflow class is instantiated.java.lang.Object
newCallbackThread(java.lang.Runnable runnable, java.lang.String name)
Intercepts creation of a workflow callback threadjava.lang.Object
newWorkflowMethodThread(java.lang.Runnable runnable, java.lang.String name)
Intercepts creation of the workflow main method thread
-
-
-
Constructor Detail
-
WorkflowInboundCallsInterceptorBase
public WorkflowInboundCallsInterceptorBase(WorkflowInboundCallsInterceptor next)
-
-
Method Detail
-
init
public void init(WorkflowOutboundCallsInterceptor outboundCalls)
Description copied from interface:WorkflowInboundCallsInterceptor
Called when workflow class is instantiated.- Specified by:
init
in interfaceWorkflowInboundCallsInterceptor
- Parameters:
outboundCalls
- interceptor for calls that workflow makes to the SDK
-
execute
public WorkflowInboundCallsInterceptor.WorkflowOutput execute(WorkflowInboundCallsInterceptor.WorkflowInput input)
Description copied from interface:WorkflowInboundCallsInterceptor
Called when workflow main method is called.- Specified by:
execute
in interfaceWorkflowInboundCallsInterceptor
- Returns:
- result of the workflow execution.
-
handleSignal
public void handleSignal(WorkflowInboundCallsInterceptor.SignalInput input)
Description copied from interface:WorkflowInboundCallsInterceptor
Called when signal is delivered to a workflow execution.- Specified by:
handleSignal
in interfaceWorkflowInboundCallsInterceptor
-
handleQuery
public WorkflowInboundCallsInterceptor.QueryOutput handleQuery(WorkflowInboundCallsInterceptor.QueryInput input)
Description copied from interface:WorkflowInboundCallsInterceptor
Called when a workflow is queried.- Specified by:
handleQuery
in interfaceWorkflowInboundCallsInterceptor
-
newWorkflowMethodThread
public java.lang.Object newWorkflowMethodThread(java.lang.Runnable runnable, java.lang.String name)
Description copied from interface:WorkflowInboundCallsInterceptor
Intercepts creation of the workflow main method thread- Specified by:
newWorkflowMethodThread
in 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
public java.lang.Object newCallbackThread(java.lang.Runnable runnable, java.lang.String name)
Description copied from interface:WorkflowInboundCallsInterceptor
Intercepts creation of a workflow callback thread- Specified by:
newCallbackThread
in 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.
-
-