Class WorkerInterceptorBase
java.lang.Object
io.temporal.common.interceptors.WorkerInterceptorBase
- All Implemented Interfaces:
WorkerInterceptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninterceptNexusOperation(io.nexusrpc.handler.OperationContext context, NexusOperationInboundCallsInterceptor next) Called when Nexus task is received.Called when workflow class is instantiated.
-
Constructor Details
-
WorkerInterceptorBase
public WorkerInterceptorBase()
-
-
Method Details
-
interceptWorkflow
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
- 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 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
-