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