- All Known Subinterfaces:
AsyncPool<T>,RedisChannelWriter,StatefulConnection<K,V>,StatefulRedisClusterConnection<K,V>,StatefulRedisClusterPubSubConnection<K,V>,StatefulRedisConnection<K,V>,StatefulRedisMasterReplicaConnection<K,V>,StatefulRedisMasterSlaveConnection<K,V>,StatefulRedisPubSubConnection<K,V>,StatefulRedisSentinelConnection<K,V>
- All Known Implementing Classes:
BoundedAsyncPool,CommandExpiryWriter,CommandListenerWriter,DefaultEndpoint,PubSubClusterEndpoint,PubSubEndpoint,StatefulRedisClusterConnectionImpl,StatefulRedisConnectionImpl,StatefulRedisPubSubConnectionImpl,StatefulRedisSentinelConnectionImpl
public interface AsyncCloseable
A
AsyncCloseable is a resource that can be closed. The closeAsync() method is invoked to request resources
release that the object is holding (such as open files).- Since:
- 5.1
- Author:
- Mark Paluch
-
Method Summary
Modifier and Type Method Description CompletableFuture<Void>closeAsync()Requests to close this object and releases any system resources associated with it.
-
Method Details
-
closeAsync
CompletableFuture<Void> closeAsync()Requests to close this object and releases any system resources associated with it. If the object is already closed then invoking this method has no effect.Calls to this method return a
CompletableFuturethat is notified with the outcome of the close request.
-