public class AbstractChannel.GracefulChannelCloseable extends CloseableUtils.IoBaseCloseable
log| Constructor and Description |
|---|
GracefulChannelCloseable() |
| 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 Closeable.close(boolean) method
has been called. |
void |
setClosing(boolean on) |
close, isOpenpublic boolean isClosing()
Closeabletrue if the Closeable.close(boolean) method
has been called.
Note that this method will return true even if
this Closeable.isClosed() returns true.true if closingpublic void setClosing(boolean on)
public boolean isClosed()
Closeabletrue if this object has been closed.true if closingpublic CloseFuture close(boolean immediately)
Closeableimmediately - true if the resource should be shut down abruptly,
false for a graceful closeCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.