public class AbstractChannel.GracefulChannelCloseable extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closing |
| Constructor and Description |
|---|
AbstractChannel.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. |
public AbstractChannel.GracefulChannelCloseable()
public 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.public boolean isClosed()
Closeabletrue< if this object has been closed.public CloseFuture close(boolean immediately)
CloseableCopyright © 2008–2014 The Apache Software Foundation. All rights reserved.