Package com.redis.lettucemod.cluster
Class StatefulRedisModulesClusterConnectionImpl<K,V>
- java.lang.Object
-
- io.lettuce.core.RedisChannelHandler<K,V>
-
- io.lettuce.core.cluster.StatefulRedisClusterConnectionImpl<K,V>
-
- com.redis.lettucemod.cluster.StatefulRedisModulesClusterConnectionImpl<K,V>
-
- All Implemented Interfaces:
StatefulRedisModulesConnection<K,V>,StatefulRedisModulesClusterConnection<K,V>,io.lettuce.core.api.AsyncCloseable,io.lettuce.core.api.StatefulConnection<K,V>,io.lettuce.core.api.StatefulRedisConnection<K,V>,io.lettuce.core.cluster.api.StatefulRedisClusterConnection<K,V>,io.lettuce.core.internal.AsyncCloseable,io.lettuce.core.protocol.ConnectionFacade,java.io.Closeable,java.lang.AutoCloseable
public class StatefulRedisModulesClusterConnectionImpl<K,V> extends io.lettuce.core.cluster.StatefulRedisClusterConnectionImpl<K,V> implements StatefulRedisModulesClusterConnection<K,V>
-
-
Constructor Summary
Constructors Constructor Description StatefulRedisModulesClusterConnectionImpl(io.lettuce.core.RedisChannelWriter writer, io.lettuce.core.cluster.ClusterPushHandler pushHandler, io.lettuce.core.codec.RedisCodec<K,V> codec, java.time.Duration timeout)Initialize a new connection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(io.lettuce.core.api.push.PushListener listener)RedisModulesAdvancedClusterAsyncCommands<K,V>async()booleanisMulti()protected RedisModulesAdvancedClusterAsyncCommandsImpl<K,V>newRedisAdvancedClusterAsyncCommandsImpl()protected RedisModulesAdvancedClusterCommands<K,V>newRedisAdvancedClusterCommandsImpl()protected RedisModulesAdvancedClusterReactiveCommandsImpl<K,V>newRedisAdvancedClusterReactiveCommandsImpl()RedisModulesAdvancedClusterReactiveCommands<K,V>reactive()voidremoveListener(io.lettuce.core.api.push.PushListener listener)RedisModulesAdvancedClusterCommands<K,V>sync()-
Methods inherited from class io.lettuce.core.cluster.StatefulRedisClusterConnectionImpl
activated, addListener, clusterSyncHandler, dispatch, dispatch, getConnection, getConnection, getConnectionAsync, getConnectionAsync, getPartitions, getReadFrom, removeListener, setPartitions, setReadFrom, syncInvocationHandler
-
Methods inherited from class io.lettuce.core.RedisChannelHandler
addListener, addListener, close, closeAsync, deactivated, flushCommands, getChannelWriter, getConnectionEvents, getOptions, getResources, getTimeout, isClosed, isOpen, registerCloseables, removeListener, reset, setAutoFlushCommands, setOptions, setTimeout, syncHandler
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.lettuce.core.api.StatefulConnection
addListener, close, closeAsync, dispatch, dispatch, flushCommands, getOptions, getResources, getTimeout, isOpen, removeListener, reset, setAutoFlushCommands, setTimeout
-
Methods inherited from interface io.lettuce.core.cluster.api.StatefulRedisClusterConnection
addListener, getChannelWriter, getConnection, getConnection, getConnection, getConnection, getConnectionAsync, getConnectionAsync, getConnectionAsync, getConnectionAsync, getPartitions, getReadFrom, removeListener, setReadFrom
-
-
-
-
Constructor Detail
-
StatefulRedisModulesClusterConnectionImpl
public StatefulRedisModulesClusterConnectionImpl(io.lettuce.core.RedisChannelWriter writer, io.lettuce.core.cluster.ClusterPushHandler pushHandler, io.lettuce.core.codec.RedisCodec<K,V> codec, java.time.Duration timeout)Initialize a new connection.- Parameters:
writer- the channel writerpushHandler- the Cluster push handlercodec- Codec used to encode/decode keys and values.timeout- Maximum time to wait for a response.
-
-
Method Detail
-
newRedisAdvancedClusterAsyncCommandsImpl
protected RedisModulesAdvancedClusterAsyncCommandsImpl<K,V> newRedisAdvancedClusterAsyncCommandsImpl()
-
newRedisAdvancedClusterCommandsImpl
protected RedisModulesAdvancedClusterCommands<K,V> newRedisAdvancedClusterCommandsImpl()
-
newRedisAdvancedClusterReactiveCommandsImpl
protected RedisModulesAdvancedClusterReactiveCommandsImpl<K,V> newRedisAdvancedClusterReactiveCommandsImpl()
-
sync
public RedisModulesAdvancedClusterCommands<K,V> sync()
- Specified by:
syncin interfaceio.lettuce.core.cluster.api.StatefulRedisClusterConnection<K,V>- Specified by:
syncin interfaceio.lettuce.core.api.StatefulRedisConnection<K,V>- Specified by:
syncin interfaceStatefulRedisModulesClusterConnection<K,V>- Specified by:
syncin interfaceStatefulRedisModulesConnection<K,V>- Overrides:
syncin classio.lettuce.core.cluster.StatefulRedisClusterConnectionImpl<K,V>
-
async
public RedisModulesAdvancedClusterAsyncCommands<K,V> async()
- Specified by:
asyncin interfaceio.lettuce.core.cluster.api.StatefulRedisClusterConnection<K,V>- Specified by:
asyncin interfaceio.lettuce.core.api.StatefulRedisConnection<K,V>- Specified by:
asyncin interfaceStatefulRedisModulesClusterConnection<K,V>- Specified by:
asyncin interfaceStatefulRedisModulesConnection<K,V>- Overrides:
asyncin classio.lettuce.core.cluster.StatefulRedisClusterConnectionImpl<K,V>
-
reactive
public RedisModulesAdvancedClusterReactiveCommands<K,V> reactive()
- Specified by:
reactivein interfaceio.lettuce.core.cluster.api.StatefulRedisClusterConnection<K,V>- Specified by:
reactivein interfaceio.lettuce.core.api.StatefulRedisConnection<K,V>- Specified by:
reactivein interfaceStatefulRedisModulesClusterConnection<K,V>- Specified by:
reactivein interfaceStatefulRedisModulesConnection<K,V>- Overrides:
reactivein classio.lettuce.core.cluster.StatefulRedisClusterConnectionImpl<K,V>
-
addListener
public void addListener(io.lettuce.core.api.push.PushListener listener)
-
removeListener
public void removeListener(io.lettuce.core.api.push.PushListener listener)
-
-