public interface Handler
| Modifier and Type | Method and Description |
|---|---|
void |
cancelOperation(OperationContext context,
OperationCancelDetails details)
Cancel the asynchronously started operation.
|
OperationInfo |
fetchOperationInfo(OperationContext context,
OperationFetchInfoDetails details)
Fetch information about the asynchronously started operation.
|
HandlerResultContent |
fetchOperationResult(OperationContext context,
OperationFetchResultDetails details)
Fetch the result for an 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.
OperationExceptionHandlerExceptionHandlerResultContent fetchOperationResult(OperationContext context, OperationFetchResultDetails details) throws OperationStillRunningException, OperationException, HandlerException
OperationHandler.fetchResult(io.nexusrpc.handler.OperationContext, io.nexusrpc.handler.OperationFetchResultDetails) for operation details.
If the result is an output stream, it will be closed later by the caller.
OperationInfo fetchOperationInfo(OperationContext context, OperationFetchInfoDetails details) throws HandlerException
OperationHandler.fetchInfo(io.nexusrpc.handler.OperationContext, io.nexusrpc.handler.OperationFetchInfoDetails) for details.HandlerExceptionvoid cancelOperation(OperationContext context, OperationCancelDetails details) throws HandlerException
OperationHandler.cancel(io.nexusrpc.handler.OperationContext, io.nexusrpc.handler.OperationCancelDetails) for details.HandlerException