| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Map | |
| private final Logger | |
| private final Promise | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized boolean | add(Closeable
the hook to add hook)Add a close |
| public Future | Returns: the future completed after completion of all close hooksRun all close hooks, after completion of all hooks, the future is closed. |
| public void | close(Promise<Void>
called when all hooks have been executed completionHandler)Implements io. Run the close hooks. |
| protected void | finalize()
Overrides java. Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
| public Future | |
| public synchronized boolean | |
| public synchronized boolean |
| closed | back to summary |
|---|---|
| private boolean closed | |
| hooks | back to summary |
|---|---|
| private Map<Closeable, CloseFuture> hooks | |
| log | back to summary |
|---|---|
| private final Logger log | |
| promise | back to summary |
|---|---|
| private final Promise<Void> promise | |
| weakHooks | back to summary |
|---|---|
| private Map<Closeable, CloseFuture> weakHooks | |
| CloseFuture | back to summary |
|---|---|
| public CloseFuture() | |
| CloseFuture | back to summary |
|---|---|
| public CloseFuture(Logger log) | |
| add | back to summary |
|---|---|
| public synchronized boolean add(Closeable hook) Add a close
| |
| close | back to summary |
|---|---|
| public Future Run all close hooks, after completion of all hooks, the future is closed. | |
| close | back to summary |
|---|---|
| public void close(Promise<Void> completionHandler) Implements io. Run the close hooks. | |
| finalize | back to summary |
|---|---|
| protected void finalize() Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the
| |
| future | back to summary |
|---|---|
| public Future | |
| isClosed | back to summary |
|---|---|
public synchronized boolean isClosed()
| |
| remove | back to summary |
|---|---|
| public synchronized boolean remove(Closeable hook) Remove an existing hook.
| |