Interface StatefulRediSearchSentinelConnection<K,V>
-
- Type Parameters:
K
- Key type.V
- Value type.
- All Superinterfaces:
io.lettuce.core.internal.AsyncCloseable
,java.lang.AutoCloseable
,io.lettuce.core.api.StatefulConnection<K,V>
,io.lettuce.core.sentinel.api.StatefulRedisSentinelConnection<K,V>
- All Known Implementing Classes:
StatefulRediSearchSentinelConnectionImpl
public interface StatefulRediSearchSentinelConnection<K,V> extends io.lettuce.core.sentinel.api.StatefulRedisSentinelConnection<K,V>
A thread-safe connection to a redis server. Multiple threads may share oneStatefulRediSearchSentinelConnection
. AConnectionWatchdog
monitors each connection and reconnects automatically untilStatefulConnection.close()
is called. All pending commands will be (re)sent after successful reconnection.- Author:
- Julien Ruaux
-
-
Method Summary
Modifier and Type Method Description RediSearchSentinelAsyncCommands<K,V>
async()
Returns theRediSearchSentinelAsyncCommands
API for the current connection.RediSearchSentinelReactiveCommands<K,V>
reactive()
Returns theRediSearchSentinelReactiveCommands
API for the current connection.RediSearchSentinelCommands<K,V>
sync()
Returns theRediSearchSentinelCommands
API for the current connection.
-
-
-
Method Detail
-
sync
RediSearchSentinelCommands<K,V> sync()
Returns theRediSearchSentinelCommands
API for the current connection. Does not create a new connection.
-
async
RediSearchSentinelAsyncCommands<K,V> async()
Returns theRediSearchSentinelAsyncCommands
API for the current connection. Does not create a new connection.
-
reactive
RediSearchSentinelReactiveCommands<K,V> reactive()
Returns theRediSearchSentinelReactiveCommands
API for the current connection. Does not create a new connection.
-
-