public interface AsyncRequestHandler extends RequestHandler
RequestHandler
in 4.0Modifier and Type | Method and Description |
---|---|
void |
handle(Message request,
Response response)
Invokes a request.
|
handle
void handle(Message request, Response response) throws java.lang.Exception
Response.send(Object,boolean)
should
be called.request
- The requestresponse
- The response implementation. Contains information needed to send the reply (e.g. a request ID).
If no response is required, e.g. because this is an asynchronous RPC, then response will be null.java.lang.Exception
- If an exception is thrown (e.g. in case of an issue submitting the request to a thread pool,
the exception will be taken as return value and will be sent as a response. In this case,
Response.send(Object,boolean)
must not be calledCopyright © 1998-2020 Red Hat. All Rights Reserved.