|
JBoss Remoting 3.0.0.Beta2 | ||||||||
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.
Method Summary | |
---|---|
void |
handleClientClose(ClientContext context)
Handle the close of a client. |
void |
handleClientOpen(ClientContext context)
Handle the opening of a client. |
void |
handleRequest(RequestContext<O> context,
I request)
Handle a request. |
void |
handleServiceClose(ServiceContext context)
Handle the close of a service. |
void |
handleServiceOpen(ServiceContext context)
Handle the opening of a service. |
Method Detail |
---|
void handleClientOpen(ClientContext context)
context
- the client contextvoid handleServiceOpen(ServiceContext context)
context
- the service contextvoid 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
). Failure to do so may
cause the client to hang indefinitely.
context
- the context on which a reply may be sentrequest
- the received request
RemoteExecutionException
- if the execution failed in some wayvoid handleServiceClose(ServiceContext context)
context
- the service contextvoid handleClientClose(ClientContext context)
context
- the client context
|
JBoss Remoting 3.0.0.Beta2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |