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,Closeable,AutoCloseable
public class StatefulRedisModulesClusterConnectionImpl<K,V>
extends io.lettuce.core.cluster.StatefulRedisClusterConnectionImpl<K,V>
implements StatefulRedisModulesClusterConnection<K,V>
-
Field Summary
Fields inherited from class io.lettuce.core.cluster.StatefulRedisClusterConnectionImpl
async, codec, reactive, sync -
Constructor Summary
ConstructorsConstructorDescriptionStatefulRedisModulesClusterConnectionImpl(io.lettuce.core.RedisChannelWriter writer, io.lettuce.core.cluster.ClusterPushHandler pushHandler, io.lettuce.core.codec.RedisCodec<K, V> codec, Duration timeout) Initialize a new connection. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(io.lettuce.core.api.push.PushListener listener) async()booleanisMulti()protected RedisModulesAdvancedClusterAsyncCommandsImpl<K,V> protected RedisModulesAdvancedClusterCommands<K,V> protected RedisModulesAdvancedClusterReactiveCommandsImpl<K,V> reactive()voidremoveListener(io.lettuce.core.api.push.PushListener listener) sync()Methods inherited from class io.lettuce.core.cluster.StatefulRedisClusterConnectionImpl
activated, addListener, clusterSyncHandler, dispatch, dispatch, getConnection, getConnection, getConnectionAsync, getConnectionAsync, getPartitions, getReadFrom, removeListener, setPartitions, setReadFrom, syncInvocationHandlerMethods 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, syncHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.lettuce.core.api.StatefulConnection
addListener, close, closeAsync, dispatch, dispatch, flushCommands, getOptions, getResources, getTimeout, isOpen, removeListener, reset, setAutoFlushCommands, setTimeoutMethods inherited from interface io.lettuce.core.cluster.api.StatefulRedisClusterConnection
addListener, getChannelWriter, getConnection, getConnection, getConnection, getConnection, getConnectionAsync, getConnectionAsync, getConnectionAsync, getConnectionAsync, getPartitions, getReadFrom, removeListener, setReadFrom
-
Constructor Details
-
StatefulRedisModulesClusterConnectionImpl
public StatefulRedisModulesClusterConnectionImpl(io.lettuce.core.RedisChannelWriter writer, io.lettuce.core.cluster.ClusterPushHandler pushHandler, io.lettuce.core.codec.RedisCodec<K, V> codec, 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 Details
-
newRedisAdvancedClusterAsyncCommandsImpl
protected RedisModulesAdvancedClusterAsyncCommandsImpl<K,V> newRedisAdvancedClusterAsyncCommandsImpl() -
newRedisAdvancedClusterCommandsImpl
-
newRedisAdvancedClusterReactiveCommandsImpl
protected RedisModulesAdvancedClusterReactiveCommandsImpl<K,V> newRedisAdvancedClusterReactiveCommandsImpl() -
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
- 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
- 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) -
isMulti
public boolean isMulti()
-