Package org.redisson.connection
Class RedisClientEntry
- java.lang.Object
-
- org.redisson.connection.RedisClientEntry
-
- All Implemented Interfaces:
ClusterNode,Node,NodeAsync
public class RedisClientEntry extends Object implements ClusterNode
- Author:
- Nikita Koksharov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.redisson.api.Node
Node.InfoSection
-
-
Constructor Summary
Constructors Constructor Description RedisClientEntry(RedisClient client, CommandAsyncExecutor commandExecutor, NodeType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>clusterInfo()Execute CLUSTER INFO operation.RFuture<Map<String,String>>clusterInfoAsync()booleanequals(Object obj)InetSocketAddressgetAddr()Get Redis node addressRedisClientgetClient()NodeTypegetType()Returns node typeinthashCode()Map<String,String>info(Node.InfoSection section)RFuture<Map<String,String>>infoAsync(Node.InfoSection section)booleanping()Ping Redis node.booleanping(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.Timetime()Returns current Redis server time in secondsRFuture<Time>timeAsync()StringtoString()
-
-
-
Constructor Detail
-
RedisClientEntry
public RedisClientEntry(RedisClient client, CommandAsyncExecutor commandExecutor, NodeType type)
-
-
Method Detail
-
getClient
public RedisClient getClient()
-
getAddr
public InetSocketAddress getAddr()
Description copied from interface:NodeGet Redis node address
-
pingAsync
public RFuture<Boolean> pingAsync(long timeout, TimeUnit timeUnit)
Description copied from interface:NodeAsyncPing Redis node with specified timeout.
-
ping
public boolean ping()
Description copied from interface:NodePing Redis node. Default timeout is 1000 milliseconds
-
ping
public boolean ping(long timeout, TimeUnit timeUnit)Description copied from interface:NodePing Redis node with specified timeout.
-
time
public Time time()
Description copied from interface:NodeReturns current Redis server time in seconds
-
clusterInfoAsync
public RFuture<Map<String,String>> clusterInfoAsync()
- Specified by:
clusterInfoAsyncin interfaceNodeAsync
-
clusterInfo
public Map<String,String> clusterInfo()
Description copied from interface:ClusterNodeExecute CLUSTER INFO operation.- Specified by:
clusterInfoin interfaceClusterNode- Returns:
- value mapped by field
-
infoAsync
public RFuture<Map<String,String>> infoAsync(Node.InfoSection section)
-
-