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()
boolean
equals(Object obj)
InetSocketAddress
getAddr()
Get Redis node addressRedisClient
getClient()
NodeType
getType()
Returns node typeint
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 secondsRFuture<Time>
timeAsync()
String
toString()
-
-
-
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:Node
Get Redis node address
-
pingAsync
public RFuture<Boolean> pingAsync(long timeout, TimeUnit timeUnit)
Description copied from interface:NodeAsync
Ping Redis node with specified timeout.
-
ping
public boolean ping()
Description copied from interface:Node
Ping Redis node. Default timeout is 1000 milliseconds
-
ping
public boolean ping(long timeout, TimeUnit timeUnit)
Description copied from interface:Node
Ping Redis node with specified timeout.
-
time
public Time time()
Description copied from interface:Node
Returns current Redis server time in seconds
-
clusterInfoAsync
public RFuture<Map<String,String>> clusterInfoAsync()
- Specified by:
clusterInfoAsync
in interfaceNodeAsync
-
clusterInfo
public Map<String,String> clusterInfo()
Description copied from interface:ClusterNode
Execute CLUSTER INFO operation.- Specified by:
clusterInfo
in interfaceClusterNode
- Returns:
- value mapped by field
-
infoAsync
public RFuture<Map<String,String>> infoAsync(Node.InfoSection section)
-
-