|
JBoss Remoting 3.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
I - the request typeO - the reply typepublic interface RequestListener<I,O>

A request listener. Implementations of this interface will reply to client requests.
This interface is part of the Remoting 3 public API, and is intended to be implemented by users of this API. Abstract members will generally not be added to such types so as to avoid backwards compatibility problems.
| Method Summary | |
|---|---|
void |
handleClose()
Handle the client closing. |
void |
handleRequest(RequestContext<O> context,
I request)
Handle a request. |
| Method Detail |
|---|
void handleRequest(RequestContext<O> context,
I request)
throws RemoteExecutionException
RemoteExecutionException, then that exception is passed
back to the caller and the request is marked as complete. Otherwise, the request
listener must send back either a reply (using the sendReply() method on the RequestContext) or
an exception (using the sendException() method on the RequestContext).
context - the context on which a reply may be sentrequest - the received request
RemoteExecutionException - if the execution failed in some wayvoid handleClose()
|
JBoss Remoting 3.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||