public interface Closeable
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.boolean isClosing()
true if the close(boolean) method
has been called.
Note that this method will return true even if
this isClosed() returns true.Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.