Package org.apache.flink.util
Interface AutoCloseableAsync
-
- All Superinterfaces:
AutoCloseable
public interface AutoCloseableAsync extends AutoCloseable
Closeable interface which allows to close a resource in a non blocking fashion.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
close()
CompletableFuture<Void>
closeAsync()
Trigger the closing of the resource and return the corresponding close future.
-
-
-
Method Detail
-
closeAsync
CompletableFuture<Void> closeAsync()
Trigger the closing of the resource and return the corresponding close future.- Returns:
- Future which is completed once the resource has been closed
-
close
default void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-