|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequestHandlerSource
A request handler source, which can be passed to remote endpoints. Remote systems can then use the handler source to acquire request handlers, or they may pass it on to other systems. Acquiring a request handler using this method has the advantage that a round trip to the remote side is not necessary; the local side can spawn a request handler and simply notify the remote side of the change.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jboss.remoting.HandleableCloseable |
---|
HandleableCloseable.Key |
Method Summary | |
---|---|
HandleableCloseable.Key |
addCloseHandler(CloseHandler<? super RequestHandlerSource> handler)
Add a handler that is called when the request handler source is closed. |
void |
close()
Close this request handler source immediately. |
Handle<RequestHandler> |
createRequestHandler()
Create a request handler for the service corresponding to this request handler source. |
Handle<RequestHandlerSource> |
getHandle()
Get a handle to this request handler source. |
Method Detail |
---|
Handle<RequestHandler> createRequestHandler() throws IOException
RemotingException
- if a client could not be opened
IOException
Handle<RequestHandlerSource> getHandle() throws IOException
Object.finalize()
method, with a log message
warning of the leak.
getHandle
in interface AutoCloseable<RequestHandlerSource>
RemotingException
- if a handle could not be acquired
IOException
void close() throws IOException
close
in interface Closeable
close
in interface HandleableCloseable<RequestHandlerSource>
IOException
- if the close failedHandleableCloseable.Key addCloseHandler(CloseHandler<? super RequestHandlerSource> handler)
addCloseHandler
in interface HandleableCloseable<RequestHandlerSource>
handler
- the handler to be called
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |