public interface CloseAsync<REPLY> extends AutoCloseable
closeAsync() method.| Modifier and Type | Method and Description |
|---|---|
default void |
close()
The same as
AutoCloseable.close(). |
CompletableFuture<REPLY> |
closeAsync()
Close asynchronously.
|
CompletableFuture<REPLY> closeAsync()
default void close()
throws Exception
AutoCloseable.close().
The default implementation simply calls closeAsync()
and then waits for the returned future to complete.close in interface AutoCloseableExceptionCopyright © 2017–2022 The Apache Software Foundation. All rights reserved.