public class RedisClientEntry extends Object implements ClusterNode
Node.InfoSection| Constructor and Description |
|---|
RedisClientEntry(RedisClient client,
CommandSyncService commandExecutor,
NodeType type) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
clusterInfo()
Execute CLUSTER INFO operation.
|
RFuture<Map<String,String>> |
clusterInfoAsync() |
boolean |
equals(Object obj) |
InetSocketAddress |
getAddr()
Get Redis node address
|
RedisClient |
getClient() |
NodeType |
getType()
Returns node type
|
int |
hashCode() |
Map<String,String> |
info(Node.InfoSection section) |
RFuture<Map<String,String>> |
infoAsync(Node.InfoSection section) |
boolean |
ping()
Ping Redis node.
|
boolean |
ping(long timeout,
TimeUnit timeUnit)
Ping Redis node with specified timeout.
|
RFuture<Boolean> |
pingAsync() |
RFuture<Boolean> |
pingAsync(long timeout,
TimeUnit timeUnit)
Ping Redis node with specified timeout.
|
Time |
time()
Returns current Redis server time in seconds
|
RFuture<Time> |
timeAsync() |
String |
toString() |
public RedisClientEntry(RedisClient client, CommandSyncService commandExecutor, NodeType type)
public RedisClient getClient()
public InetSocketAddress getAddr()
Nodepublic RFuture<Boolean> pingAsync(long timeout, TimeUnit timeUnit)
NodeAsyncpublic boolean ping()
Nodepublic boolean ping(long timeout,
TimeUnit timeUnit)
Nodepublic Time time()
Nodepublic RFuture<Map<String,String>> clusterInfoAsync()
clusterInfoAsync in interface NodeAsyncpublic Map<String,String> clusterInfo()
ClusterNodeclusterInfo in interface ClusterNodepublic RFuture<Map<String,String>> infoAsync(Node.InfoSection section)
Copyright © 2014–2020 Redisson. All rights reserved.