|
JBoss Remoting 3.0.0.Beta2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RequestHandler

A request handler, which can be passed to remote endpoints. Remote systems can then use the handler to make invocations, or they may forward a handler on to other remote systems.
This is an internal Remoting interface, intended to be implemented only by Remoting internals and protocol implementations.
It should not be implemented by end-users, as members may be added without notice. Applications should instead use
the Client and RequestListener interfaces.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.remoting.HandleableCloseable |
|---|
HandleableCloseable.Key |
| Method Summary | |
|---|---|
HandleableCloseable.Key |
addCloseHandler(CloseHandler<? super RequestHandler> handler)
Add a handler that is called when the request handler is closed. |
void |
close()
Close this request handler. |
Handle<RequestHandler> |
getHandle()
Get a handle to this request handler. |
RemoteRequestContext |
receiveRequest(Object request,
ReplyHandler replyHandler)
Receive a request from a remote system. |
| Method Detail |
|---|
RemoteRequestContext receiveRequest(Object request,
ReplyHandler replyHandler)
ReplyHandler.handleException(java.io.IOException)
method is called immediately.
request - the requestreplyHandler - a handler for the reply
Handle<RequestHandler> getHandle()
throws IOException
Object.finalize() method, with a log message
warning of the leak.
getHandle in interface AutoCloseable<RequestHandler>IOException - if a handle could not be acquired
void close()
throws IOException
close in interface Closeableclose in interface HandleableCloseable<RequestHandler>IOException - if the client endpoint could not be closedHandleableCloseable.Key addCloseHandler(CloseHandler<? super RequestHandler> handler)
addCloseHandler in interface HandleableCloseable<RequestHandler>handler - the handler to be called
|
JBoss Remoting 3.0.0.Beta2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||