public interface Closeable extends Channel
Closeable is a resource that can be closed.
The close method is invoked to release resources that the object is
holding.| Modifier and Type | Method and Description |
|---|---|
CloseFuture |
close(boolean immediately)
Close this resource asynchronously and return a future.
|
boolean |
isClosed()
Returns
true if this object has been closed. |
boolean |
isClosing()
Returns
true if the close(boolean) method
has been called. |
CloseFuture close(boolean immediately)
immediately - true if the resource should be shut down abruptly,
false for a graceful closeboolean isClosed()
true if this object has been closed.true if closingboolean isClosing()
true if the close(boolean) method
has been called.
Note that this method will return true even if
this isClosed() returns true.true if closingCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.