K - Key type.V - Value type.@Deprecated public interface RedisSentinelAsyncConnection<K,V> extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
RedisFuture<String> |
failover(K key)
Deprecated.
Perform a failover.
|
RedisFuture<SocketAddress> |
getMasterAddrByName(K key)
Deprecated.
Return the ip and port number of the master with that name.
|
boolean |
isOpen()
Deprecated.
|
RedisFuture<Map<K,V>> |
master(K key)
Deprecated.
Show the state and info of the specified master.
|
RedisFuture<List<Map<K,V>>> |
masters()
Deprecated.
Enumerates all the monitored masters and their states.
|
RedisFuture<String> |
monitor(K key,
String ip,
int port,
int quorum)
Deprecated.
This command tells the Sentinel to start monitoring a new master with the specified name, ip, port, and quorum.
|
RedisFuture<String> |
ping()
Deprecated.
Ping the server.
|
RedisFuture<String> |
remove(K key)
Deprecated.
remove the specified master.
|
RedisFuture<Long> |
reset(K key)
Deprecated.
This command will reset all the masters with matching name.
|
RedisFuture<String> |
set(K key,
String option,
V value)
Deprecated.
Multiple option / value pairs can be specified (or none at all).
|
RedisFuture<List<Map<K,V>>> |
slaves(K key)
Deprecated.
Provides a list of slaves for the master with the specified name.
|
RedisFuture<SocketAddress> getMasterAddrByName(K key)
key - the keyRedisFuture<List<Map<K,V>>> masters()
RedisFuture<Map<K,V>> master(K key)
key - the keyRedisFuture<List<Map<K,V>>> slaves(K key)
key - the keyRedisFuture<Long> reset(K key)
key - the keyRedisFuture<String> failover(K key)
key - the master idRedisFuture<String> monitor(K key, String ip, int port, int quorum)
key - the keyip - the IP addressport - the portquorum - the quorum countRedisFuture<String> set(K key, String option, V value)
key - the keyoption - the optionvalue - the valueOK if SET was executed correctly.RedisFuture<String> remove(K key)
key - the keyRedisFuture<String> ping()
void close()
close in interface AutoCloseableclose in interface Closeableboolean isOpen()
Copyright © 2018 lettuce.io. All rights reserved.