K - Key type.V - Value type.public class StatefulRediSearchConnectionImpl<K,V> extends io.lettuce.core.StatefulRedisConnectionImpl<K,V> implements StatefulRediSearchConnection<K,V>
StatefulRediSearchConnectionImpl
A ConnectionWatchdog monitors each connection and reconnects
automatically until RedisChannelHandler.close() is called. All pending commands will be
(re)sent after successful reconnection.| Constructor and Description |
|---|
StatefulRediSearchConnectionImpl(io.lettuce.core.RedisChannelWriter writer,
io.lettuce.core.protocol.PushHandler pushHandler,
io.lettuce.core.codec.RedisCodec<K,V> codec,
java.time.Duration timeout)
Initialize a new connection.
|
| Modifier and Type | Method and Description |
|---|---|
RediSearchAsyncCommands<K,V> |
async() |
protected RediSearchAsyncCommandsImpl<K,V> |
newRedisAsyncCommandsImpl()
Create a new instance of
RediSearchAsyncCommandsImpl. |
protected io.lettuce.core.RedisReactiveCommandsImpl<K,V> |
newRedisReactiveCommandsImpl()
Create a new instance of
RediSearchReactiveCommandsImpl. |
protected RediSearchCommands<K,V> |
newRedisSyncCommandsImpl()
Create a new instance of
RediSearchCommands. |
RediSearchReactiveCommands<K,V> |
reactive() |
RediSearchCommands<K,V> |
sync() |
addListener, dispatch, dispatch, getCodec, getConnectionState, isMulti, preProcessCommand, removeListener, setClientNameactivated, addListener, close, closeAsync, deactivated, flushCommands, getChannelWriter, getOptions, getResources, getTimeout, isClosed, isOpen, registerCloseables, reset, setAutoFlushCommands, setOptions, setTimeout, syncHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic StatefulRediSearchConnectionImpl(io.lettuce.core.RedisChannelWriter writer,
io.lettuce.core.protocol.PushHandler pushHandler,
io.lettuce.core.codec.RedisCodec<K,V> codec,
java.time.Duration timeout)
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.protected RediSearchAsyncCommandsImpl<K,V> newRedisAsyncCommandsImpl()
RediSearchAsyncCommandsImpl. Can be
overriden to extend.protected io.lettuce.core.RedisReactiveCommandsImpl<K,V> newRedisReactiveCommandsImpl()
RediSearchReactiveCommandsImpl. Can be
overriden to extend.protected RediSearchCommands<K,V> newRedisSyncCommandsImpl()
RediSearchCommands. Can be overriden to
extend.public RediSearchAsyncCommands<K,V> async()
public RediSearchCommands<K,V> sync()