public interface AutoCloseableAsync extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
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
in interface AutoCloseable
Exception
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.