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

A handle to a reference-counted AutoCloseable resource.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.remoting.HandleableCloseable |
|---|
HandleableCloseable.Key |
| Method Summary | |
|---|---|
HandleableCloseable.Key |
addCloseHandler(CloseHandler<? super Handle<T>> handler)
Add a handler that is invoked when this handle is closed. |
void |
close()
Close this handle. |
T |
getResource()
Get the resource. |
| Method Detail |
|---|
T getResource()
void close()
throws IOException
close in interface Closeableclose in interface HandleableCloseable<Handle<T>>IOException - if the close failedHandleableCloseable.Key addCloseHandler(CloseHandler<? super Handle<T>> handler)
addCloseHandler in interface HandleableCloseable<Handle<T>>handler - the handler
|
JBoss Remoting 3.0.0.Beta2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||