|
JBoss Remoting 3 3.2.0.Beta2-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type that is passed to the close handlerpublic interface HandleableCloseable<T>
A Remoting resource that can be closed.
Nested Class Summary | |
---|---|
static interface |
HandleableCloseable.Key
A key which may be used to remove this handler. |
Method Summary | |
---|---|
HandleableCloseable.Key |
addCloseHandler(CloseHandler<? super T> handler)
Add a handler that will be called upon close. |
void |
awaitClosed()
Wait for a resource close to complete. |
void |
awaitClosedUninterruptibly()
Wait for a resource close to complete. |
void |
close()
Close this resource. |
void |
closeAsync()
Asynchronously close this resource. |
Method Detail |
---|
void close() throws IOException
close
in interface Closeable
IOException
- if the close failedvoid awaitClosed() throws InterruptedException
InterruptedException
- if the operation is interruptedvoid awaitClosedUninterruptibly()
void closeAsync()
HandleableCloseable.Key addCloseHandler(CloseHandler<? super T> handler)
handler
- the close handler
|
JBoss Remoting 3 3.2.0.Beta2-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |