|
|||||||||
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.
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 acquiredvoid close() throws IOException
close
in interface Closeable
close
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |