Package io.temporal.common.interceptors
Interface NexusOperationInboundCallsInterceptor
-
- All Known Implementing Classes:
NexusOperationInboundCallsInterceptorBase,RootNexusOperationInboundCallsInterceptor
public interface NexusOperationInboundCallsInterceptorIntercepts inbound calls to a Nexus operation on the worker side.An instance should be created in
WorkerInterceptor.interceptNexusOperation(OperationContext, NexusOperationInboundCallsInterceptor).Prefer extending
NexusOperationInboundCallsInterceptorBaseand overriding only the methods you need instead of implementing this interface directly.NexusOperationInboundCallsInterceptorBaseprovides correct default implementations to all the methods of this interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classNexusOperationInboundCallsInterceptor.CancelOperationInputstatic classNexusOperationInboundCallsInterceptor.CancelOperationOutputstatic classNexusOperationInboundCallsInterceptor.StartOperationInputstatic classNexusOperationInboundCallsInterceptor.StartOperationOutput
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NexusOperationInboundCallsInterceptor.CancelOperationOutputcancelOperation(NexusOperationInboundCallsInterceptor.CancelOperationInput input)Intercepts a call to cancel a Nexus operation.voidinit(NexusOperationOutboundCallsInterceptor outboundCalls)NexusOperationInboundCallsInterceptor.StartOperationOutputstartOperation(NexusOperationInboundCallsInterceptor.StartOperationInput input)Intercepts a call to start a Nexus operation.
-
-
-
Method Detail
-
init
void init(NexusOperationOutboundCallsInterceptor outboundCalls)
-
startOperation
NexusOperationInboundCallsInterceptor.StartOperationOutput startOperation(NexusOperationInboundCallsInterceptor.StartOperationInput input) throws io.nexusrpc.OperationException
Intercepts a call to start a Nexus operation.- Parameters:
input- input to the operation start.- Returns:
- result of the operation start.
- Throws:
io.nexusrpc.OperationException- if the operation start failed.
-
cancelOperation
NexusOperationInboundCallsInterceptor.CancelOperationOutput cancelOperation(NexusOperationInboundCallsInterceptor.CancelOperationInput input)
Intercepts a call to cancel a Nexus operation.- Parameters:
input- input to the operation cancel.- Returns:
- result of the operation cancel.
-
-