T - The response typepublic interface ResponseHandler<A extends CommandActor,T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ResponseHandler.Factory<A extends CommandActor>
A factory that allows to create
ResponseHandlers dynamically. |
| Modifier and Type | Method and Description |
|---|---|
void |
handleResponse(T response,
ExecutionContext<A> context)
Handles the response returned from the method
|
static <A extends CommandActor,T> |
noOp()
Returns a basic
ResponseHandler that does nothing. |
@NotNull static <A extends CommandActor,T> @NotNull ResponseHandler<A,T> noOp()
ResponseHandler that does nothing.A - The actor typeT - The response typevoid handleResponse(T response, ExecutionContext<A> context)
response - The response returned from the method. May or may not be null.context - The command execution context