public interface Handler
| Modifier and Type | Method and Description |
|---|---|
void |
cancelOperation(OperationContext context,
OperationCancelDetails details)
Cancel the asynchronously started operation.
|
OperationStartResult<HandlerResultContent> |
startOperation(OperationContext context,
OperationStartDetails details,
HandlerInputContent input)
Handle the start of an operation.
|
OperationStartResult<HandlerResultContent> startOperation(OperationContext context, OperationStartDetails details, HandlerInputContent input) throws OperationException, HandlerException
OperationHandler.start(io.nexusrpc.handler.OperationContext, io.nexusrpc.handler.OperationStartDetails, T) for operation details.
The implementation here should not close the input stream, that will be done by the caller.
If the result is an output stream, it will be closed later by the caller.
OperationExceptionHandlerExceptionvoid cancelOperation(OperationContext context, OperationCancelDetails details) throws HandlerException
OperationHandler.cancel(io.nexusrpc.handler.OperationContext, io.nexusrpc.handler.OperationCancelDetails) for details.HandlerException