Package com.redislabs.lettusearch.impl
Class StatefulRediSearchSentinelConnectionImpl<K,V>
- java.lang.Object
-
- io.lettuce.core.RedisChannelHandler<K,V>
-
- io.lettuce.core.sentinel.StatefulRedisSentinelConnectionImpl<K,V>
-
- com.redislabs.lettusearch.impl.StatefulRediSearchSentinelConnectionImpl<K,V>
-
- All Implemented Interfaces:
StatefulRediSearchSentinelConnection<K,V>
,io.lettuce.core.api.StatefulConnection<K,V>
,io.lettuce.core.internal.AsyncCloseable
,io.lettuce.core.protocol.ConnectionFacade
,io.lettuce.core.sentinel.api.StatefulRedisSentinelConnection<K,V>
,java.io.Closeable
,java.lang.AutoCloseable
public class StatefulRediSearchSentinelConnectionImpl<K,V> extends io.lettuce.core.sentinel.StatefulRedisSentinelConnectionImpl<K,V> implements StatefulRediSearchSentinelConnection<K,V>
- Author:
- Julien Ruaux
-
-
Field Summary
Fields Modifier and Type Field Description protected RediSearchSentinelAsyncCommands<K,V>
async
protected RediSearchSentinelReactiveCommands<K,V>
reactive
protected RediSearchSentinelCommands<K,V>
sync
-
Constructor Summary
Constructors Constructor Description StatefulRediSearchSentinelConnectionImpl(io.lettuce.core.RedisChannelWriter writer, io.lettuce.core.codec.RedisCodec<K,V> codec, java.time.Duration timeout)
-
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.-
Methods inherited from class io.lettuce.core.sentinel.StatefulRedisSentinelConnectionImpl
activated, dispatch, dispatch, setClientName
-
Methods inherited from class io.lettuce.core.RedisChannelHandler
addListener, close, closeAsync, deactivated, flushCommands, getChannelWriter, getOptions, getResources, getTimeout, isClosed, isOpen, registerCloseables, reset, setAutoFlushCommands, setOptions, setTimeout, setTimeout, syncHandler
-
-
-
-
Field Detail
-
sync
protected final RediSearchSentinelCommands<K,V> sync
-
async
protected final RediSearchSentinelAsyncCommands<K,V> async
-
reactive
protected final RediSearchSentinelReactiveCommands<K,V> reactive
-
-
Method Detail
-
sync
public RediSearchSentinelCommands<K,V> sync()
Description copied from interface:StatefulRediSearchSentinelConnection
Returns theRediSearchSentinelCommands
API for the current connection. Does not create a new connection.- Specified by:
sync
in interfaceStatefulRediSearchSentinelConnection<K,V>
- Specified by:
sync
in interfaceio.lettuce.core.sentinel.api.StatefulRedisSentinelConnection<K,V>
- Overrides:
sync
in classio.lettuce.core.sentinel.StatefulRedisSentinelConnectionImpl<K,V>
- Returns:
- the synchronous API for the underlying connection.
-
async
public RediSearchSentinelAsyncCommands<K,V> async()
Description copied from interface:StatefulRediSearchSentinelConnection
Returns theRediSearchSentinelAsyncCommands
API for the current connection. Does not create a new connection.- Specified by:
async
in interfaceStatefulRediSearchSentinelConnection<K,V>
- Specified by:
async
in interfaceio.lettuce.core.sentinel.api.StatefulRedisSentinelConnection<K,V>
- Overrides:
async
in classio.lettuce.core.sentinel.StatefulRedisSentinelConnectionImpl<K,V>
- Returns:
- the asynchronous API for the underlying connection.
-
reactive
public RediSearchSentinelReactiveCommands<K,V> reactive()
Description copied from interface:StatefulRediSearchSentinelConnection
Returns theRediSearchSentinelReactiveCommands
API for the current connection. Does not create a new connection.- Specified by:
reactive
in interfaceStatefulRediSearchSentinelConnection<K,V>
- Specified by:
reactive
in interfaceio.lettuce.core.sentinel.api.StatefulRedisSentinelConnection<K,V>
- Overrides:
reactive
in classio.lettuce.core.sentinel.StatefulRedisSentinelConnectionImpl<K,V>
- Returns:
- the reactive API for the underlying connection.
-
-