Package io.lettuce.core.masterslave
Interface StatefulRedisMasterSlaveConnection<K,V>
-
- Type Parameters:
K
- Key type.V
- Value type.
- All Superinterfaces:
AsyncCloseable
,AsyncCloseable
,AutoCloseable
,StatefulConnection<K,V>
,StatefulRedisConnection<K,V>
,StatefulRedisMasterReplicaConnection<K,V>
@Deprecated public interface StatefulRedisMasterSlaveConnection<K,V> extends StatefulRedisMasterReplicaConnection<K,V>
Deprecated.since 5.2, useMasterReplica
andStatefulRedisMasterReplicaConnection
.Redis Master-Slave connection. The connection allows slave reads by settingReadFrom
.- Since:
- 4.1
- Author:
- Mark Paluch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ReadFrom
getReadFrom()
Deprecated.Gets theReadFrom
setting for this connection.void
setReadFrom(ReadFrom readFrom)
Deprecated.Set from which nodes data is read.-
Methods inherited from interface io.lettuce.core.api.StatefulConnection
addListener, close, closeAsync, dispatch, dispatch, flushCommands, getOptions, getResources, getTimeout, isOpen, removeListener, reset, setAutoFlushCommands, setTimeout
-
Methods inherited from interface io.lettuce.core.api.StatefulRedisConnection
addListener, async, isMulti, reactive, removeListener, sync
-
-
-
-
Method Detail
-
setReadFrom
void setReadFrom(ReadFrom readFrom)
Deprecated.Set from which nodes data is read. The setting is used as default for read operations on this connection. See the documentation forReadFrom
for more information.- Specified by:
setReadFrom
in interfaceStatefulRedisMasterReplicaConnection<K,V>
- Parameters:
readFrom
- the read from setting, must not benull
-
getReadFrom
ReadFrom getReadFrom()
Deprecated.Gets theReadFrom
setting for this connection. Defaults toReadFrom.UPSTREAM
if not set.- Specified by:
getReadFrom
in interfaceStatefulRedisMasterReplicaConnection<K,V>
- Returns:
- the read from setting
-
-