public interface ListenableAsyncCloseable extends AsyncCloseable
AsyncCloseable which allows a user to check whether the object is closed or to get
notified when closed.| Modifier and Type | Method and Description |
|---|---|
boolean |
isClosed()
Returns whether
AsyncCloseable.close() or AsyncCloseable.closeAsync() operation has been completed. |
boolean |
isClosing()
Returns whether
AsyncCloseable.close() or AsyncCloseable.closeAsync() has been called. |
CompletableFuture<?> |
whenClosed()
Returns the
CompletableFuture which is completed after the AsyncCloseable.close() or
AsyncCloseable.closeAsync() operation is completed. |
close, closeAsyncboolean isClosing()
AsyncCloseable.close() or AsyncCloseable.closeAsync() has been called.isClosed()boolean isClosed()
AsyncCloseable.close() or AsyncCloseable.closeAsync() operation has been completed.isClosing()CompletableFuture<?> whenClosed()
CompletableFuture which is completed after the AsyncCloseable.close() or
AsyncCloseable.closeAsync() operation is completed.Copyright © 2020 LeanCloud. All rights reserved.