K - Key type.V - Value type.public interface StatefulRedisConnection<K,V> extends StatefulConnection<K,V>
StatefulRedisConnection.
A ConnectionWatchdog monitors each connection and reconnects automatically until StatefulConnection.close() is called. All
pending commands will be (re)sent after successful reconnection.| Modifier and Type | Method and Description |
|---|---|
void |
addListener(PushListener listener)
Add a new
listener to consume push messages. |
RedisAsyncCommands<K,V> |
async()
Returns the
RedisAsyncCommands API for the current connection. |
boolean |
isMulti() |
RedisReactiveCommands<K,V> |
reactive()
Returns the
RedisReactiveCommands API for the current connection. |
void |
removeListener(PushListener listener)
Remove an existing
listener. |
RedisCommands<K,V> |
sync()
Returns the
RedisCommands API for the current connection. |
addListener, close, closeAsync, dispatch, dispatch, flushCommands, getOptions, getResources, getTimeout, isOpen, removeListener, reset, setAutoFlushCommands, setTimeoutboolean isMulti()
RedisCommands<K,V> sync()
RedisCommands API for the current connection. Does not create a new connection.RedisAsyncCommands<K,V> async()
RedisAsyncCommands API for the current connection. Does not create a new connection.RedisReactiveCommands<K,V> reactive()
RedisReactiveCommands API for the current connection. Does not create a new connection.void addListener(PushListener listener)
listener to consume push messages.listener - the listener, must not be null.void removeListener(PushListener listener)
listener.listener - the listener, must not be null.Copyright © 2022 lettuce.io. All rights reserved.