Package io.temporal.common.interceptors
Class WorkerInterceptorBase
- java.lang.Object
-
- io.temporal.common.interceptors.WorkerInterceptorBase
-
- All Implemented Interfaces:
WorkerInterceptor
public class WorkerInterceptorBase extends java.lang.Object implements WorkerInterceptor
-
-
Constructor Summary
Constructors Constructor Description WorkerInterceptorBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivityInboundCallsInterceptorinterceptActivity(ActivityInboundCallsInterceptor next)NexusOperationInboundCallsInterceptorinterceptNexusOperation(io.nexusrpc.handler.OperationContext context, NexusOperationInboundCallsInterceptor next)Called when Nexus task is received.WorkflowInboundCallsInterceptorinterceptWorkflow(WorkflowInboundCallsInterceptor next)Called when workflow class is instantiated.
-
-
-
Method Detail
-
interceptWorkflow
public WorkflowInboundCallsInterceptor interceptWorkflow(WorkflowInboundCallsInterceptor next)
Description copied from interface:WorkerInterceptorCalled when workflow class is instantiated. May create aWorkflowInboundCallsInterceptorinstance. The instance must forward all the calls tonextWorkflowInboundCallsInterceptor, but it may change the input parameters.- Specified by:
interceptWorkflowin interfaceWorkerInterceptor- Parameters:
next- an existing interceptor instance to be proxied by the interceptor created inside this method- Returns:
- an interceptor that passes all the calls to
next
-
interceptActivity
public ActivityInboundCallsInterceptor interceptActivity(ActivityInboundCallsInterceptor next)
- Specified by:
interceptActivityin interfaceWorkerInterceptor
-
interceptNexusOperation
public NexusOperationInboundCallsInterceptor interceptNexusOperation(io.nexusrpc.handler.OperationContext context, NexusOperationInboundCallsInterceptor next)
Description copied from interface:WorkerInterceptorCalled when Nexus task is received. May create aNexusOperationInboundCallsInterceptorinstance. The instance must forward all the calls tonextNexusOperationInboundCallsInterceptor, but it may change the input parameters.- Specified by:
interceptNexusOperationin interfaceWorkerInterceptornext- an existing interceptor instance to be proxied by the interceptor created inside this method- Returns:
- an interceptor that passes all the calls to
next
-
-