Package io.lettuce.core.internal
Interface AsyncCloseable
-
- All Known Subinterfaces:
AsyncCloseable
,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
@Deprecated public interface AsyncCloseable
Deprecated.since 6.2, useAsyncCloseable
instead.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:
- 5.1
- Author:
- Mark Paluch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description CompletableFuture<Void>
closeAsync()
Deprecated.Requests to close this object and releases any system resources associated with it.
-
-
-
Method Detail
-
closeAsync
CompletableFuture<Void> closeAsync()
Deprecated.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.
-
-