public interface CloseAsync<REPLY> extends AutoCloseable
closeAsync() method.| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 AutoCloseableExceptionCopyright © 2017–2021 The Apache Software Foundation. All rights reserved.