public interface AutoCloseableAsync extends AutoCloseable
限定符和类型 | 方法和说明 |
---|---|
default void |
close() |
CompletableFuture<Void> |
closeAsync()
Trigger the closing of the resource and return the corresponding
close future.
|
CompletableFuture<Void> closeAsync()
default void close() throws Exception
close
在接口中 AutoCloseable
Exception
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.