Package io.lettuce.core.api
Interface AsyncCloseable
-
- All Superinterfaces:
AsyncCloseable
- 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 extends AsyncCloseable
AAsyncCloseable
is a resource that can be closed. ThecloseAsync()
method is invoked to request resources release that the object is holding (such as open files).- Since:
- 6.2
- Author:
- Mark Paluch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<Void>
closeAsync()
Requests to close this object and releases any system resources associated with it.
-
-
-
Method Detail
-
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
CompletableFuture
that is notified with the outcome of the close request.- Specified by:
closeAsync
in interfaceAsyncCloseable
-
-