Interface NexusOperationInboundCallsInterceptor
- All Known Implementing Classes:
NexusOperationInboundCallsInterceptorBase,RootNexusOperationInboundCallsInterceptor
Intercepts inbound calls to a Nexus operation on the worker side.
An instance should be created in WorkerInterceptor.interceptNexusOperation(OperationContext, NexusOperationInboundCallsInterceptor).
Prefer extending NexusOperationInboundCallsInterceptorBase and overriding only the
methods you need instead of implementing this interface directly. NexusOperationInboundCallsInterceptorBase provides correct default implementations to all the
methods of this interface.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classstatic final classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionIntercepts a call to cancel a Nexus operation.voidinit(NexusOperationOutboundCallsInterceptor outboundCalls) Intercepts a call to start a Nexus operation.
-
Method Details
-
init
-
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.
-