Package com.redis.lettucemod
Class StatefulRedisModulesConnectionImpl<K,V>
java.lang.Object
io.lettuce.core.RedisChannelHandler<K,V>
io.lettuce.core.StatefulRedisConnectionImpl<K,V>
com.redis.lettucemod.StatefulRedisModulesConnectionImpl<K,V>
- Type Parameters:
K- Key type.V- Value type.
- All Implemented Interfaces:
StatefulRedisModulesConnection<K,,V> io.lettuce.core.api.AsyncCloseable,io.lettuce.core.api.StatefulConnection<K,,V> io.lettuce.core.api.StatefulRedisConnection<K,,V> io.lettuce.core.internal.AsyncCloseable,io.lettuce.core.protocol.ConnectionFacade,Closeable,AutoCloseable
public class StatefulRedisModulesConnectionImpl<K,V>
extends io.lettuce.core.StatefulRedisConnectionImpl<K,V>
implements StatefulRedisModulesConnection<K,V>
A thread-safe connection to a RedisTimeSeries server. Multiple threads may share
one
StatefulRedisModulesConnectionImpl
A ConnectionWatchdog monitors each connection and reconnects
automatically until RedisChannelHandler.close() is called. All pending commands will be
(re)sent after successful reconnection.- Author:
- Mark Paluch, Julien Ruaux
-
Field Summary
Fields inherited from class io.lettuce.core.StatefulRedisConnectionImpl
async, codec, multi, reactive, sync -
Constructor Summary
ConstructorsConstructorDescriptionStatefulRedisModulesConnectionImpl(io.lettuce.core.RedisChannelWriter writer, io.lettuce.core.protocol.PushHandler pushHandler, io.lettuce.core.codec.RedisCodec<K, V> codec, Duration timeout) Initialize a new connection. -
Method Summary
Modifier and TypeMethodDescriptionasync()protected RedisModulesAsyncCommandsImpl<K,V> Create a new instance ofRedisModulesAsyncCommandsImpl.Create a new instance ofRedisModulesReactiveCommandsImpl.protected RedisModulesCommands<K,V> Create a new instance ofRedisModulesCommands.reactive()sync()Methods inherited from class io.lettuce.core.StatefulRedisConnectionImpl
addListener, dispatch, dispatch, getCodec, getConnectionState, isMulti, preProcessCommand, removeListener, setClientNameMethods inherited from class io.lettuce.core.RedisChannelHandler
activated, 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.api.StatefulRedisConnection
addListener, isMulti, removeListener
-
Constructor Details
-
StatefulRedisModulesConnectionImpl
public StatefulRedisModulesConnectionImpl(io.lettuce.core.RedisChannelWriter writer, io.lettuce.core.protocol.PushHandler pushHandler, io.lettuce.core.codec.RedisCodec<K, V> codec, Duration timeout) Initialize a new connection.- Parameters:
writer- the channel writer.pushHandler- the handler for push notifications.codec- Codec used to encode/decode keys and values.timeout- Maximum time to wait for a response.
-
-
Method Details
-
newRedisAsyncCommandsImpl
Create a new instance ofRedisModulesAsyncCommandsImpl. Can be overriden to extend. -
newRedisReactiveCommandsImpl
Create a new instance ofRedisModulesReactiveCommandsImpl. Can be overriden to extend. -
newRedisSyncCommandsImpl
Create a new instance ofRedisModulesCommands. Can be overriden to extend. -
async
-
sync
-
reactive
-