K
- Key type.V
- Value type.public interface RedisSentinelAsyncCommands<K,V>
Modifier and Type | Method and Description |
---|---|
RedisFuture<K> |
clientGetname()
Get the current connection name.
|
RedisFuture<Long> |
clientKill(KillArgs killArgs)
Kill connections of clients which are filtered by
killArgs |
RedisFuture<String> |
clientKill(String addr)
Kill the connection of a client identified by ip:port.
|
RedisFuture<String> |
clientList()
Get the list of client connections.
|
RedisFuture<String> |
clientPause(long timeout)
Stop processing commands from clients for some time.
|
RedisFuture<String> |
clientSetname(K name)
Set the current connection name.
|
<T> RedisFuture<T> |
dispatch(ProtocolKeyword type,
CommandOutput<K,V,T> output)
Dispatch a command to the Redis Server.
|
<T> RedisFuture<T> |
dispatch(ProtocolKeyword type,
CommandOutput<K,V,T> output,
CommandArgs<K,V> args)
Dispatch a command to the Redis Server.
|
RedisFuture<String> |
failover(K key)
Perform a failover.
|
RedisFuture<SocketAddress> |
getMasterAddrByName(K key)
Return the ip and port number of the master with that name.
|
StatefulRedisSentinelConnection<K,V> |
getStatefulConnection() |
RedisFuture<String> |
info()
Get information and statistics about the server.
|
RedisFuture<String> |
info(String section)
Get information and statistics about the server.
|
boolean |
isOpen() |
RedisFuture<Map<K,V>> |
master(K key)
Show the state and info of the specified master.
|
RedisFuture<List<Map<K,V>>> |
masters()
Enumerates all the monitored masters and their states.
|
RedisFuture<String> |
monitor(K key,
String ip,
int port,
int quorum)
This command tells the Sentinel to start monitoring a new master with the specified name, ip, port, and quorum.
|
RedisFuture<String> |
ping()
Ping the server.
|
RedisFuture<String> |
remove(K key)
remove the specified master.
|
RedisFuture<Long> |
reset(K key)
This command will reset all the masters with matching name.
|
RedisFuture<String> |
set(K key,
String option,
V value)
Multiple option / value pairs can be specified (or none at all).
|
RedisFuture<List<Map<K,V>>> |
slaves(K key)
Provides a list of replicas 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<K> clientGetname()
RedisFuture<String> clientSetname(K name)
name
- the client nameOK
if the connection name was successfully set.RedisFuture<String> clientKill(String addr)
addr
- ip:portOK
if the connection exists and has been closedRedisFuture<Long> clientKill(KillArgs killArgs)
killArgs
killArgs
- args for the kill operationRedisFuture<String> clientPause(long timeout)
timeout
- the timeout value in millisecondsRedisFuture<String> clientList()
RedisFuture<String> info()
RedisFuture<String> info(String section)
section
- the section type: stringRedisFuture<String> ping()
<T> RedisFuture<T> dispatch(ProtocolKeyword type, CommandOutput<K,V,T> output)
T
- response typetype
- the command, must not be null.output
- the command output, must not be null.<T> RedisFuture<T> dispatch(ProtocolKeyword type, CommandOutput<K,V,T> output, CommandArgs<K,V> args)
T
- response typetype
- the command, must not be null.output
- the command output, must not be null.args
- the command arguments, must not be null.boolean isOpen()
StatefulRedisSentinelConnection<K,V> getStatefulConnection()
Copyright © 2019 lettuce.io. All rights reserved.