Package io.temporal.common.interceptors
Interface WorkerInterceptor
-
public interface WorkerInterceptor
Intercepts workflow and activity executions.TODO(maxim): JavaDoc with sample
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ActivityInboundCallsInterceptor
interceptActivity(ActivityInboundCallsInterceptor next)
WorkflowInboundCallsInterceptor
interceptWorkflow(WorkflowInboundCallsInterceptor next)
Called when workflow class is instantiated.
-
-
-
Method Detail
-
interceptWorkflow
WorkflowInboundCallsInterceptor interceptWorkflow(WorkflowInboundCallsInterceptor next)
Called when workflow class is instantiated. May create aWorkflowInboundCallsInterceptor
instance. The instance must forward all the calls tonext
WorkflowInboundCallsInterceptor
, but it may change the input parameters.- 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
ActivityInboundCallsInterceptor interceptActivity(ActivityInboundCallsInterceptor next)
-
-