Package org.redisson.connection
Class RedisClientEntry
-
- org.redisson.connection.RedisClientEntry
-
- All Implemented Interfaces:
ClusterNode
,Node
,NodeAsync
public class RedisClientEntry extends 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 <,>
clusterInfo()
Execute CLUSTER INFO operation.<,>>
clusterInfoAsync()
boolean
obj)
getAddr()
Get Redis node addressRedisClient
getClient()
NodeType
getType()
Returns node typeint
hashCode()
<,>
info(Node.InfoSection section)
<,>>
infoAsync(Node.InfoSection section)
boolean
ping()
Ping Redis node.boolean
ping(long timeout, timeUnit)
Ping Redis node with specified timeout.>
pingAsync()
>
pingAsync(long timeout, timeUnit)
Ping Redis node with specified timeout.Time
time()
Returns current Redis server time in secondsRFuture<Time>
timeAsync()
toString()
-
-
-
Constructor Detail
-
RedisClientEntry
public RedisClientEntry(RedisClient client, CommandAsyncExecutor commandExecutor, NodeType type)
-
-
Method Detail
-
getClient
public RedisClient getClient()
-
getAddr
public getAddr()
Description copied from interface:Node
Get Redis node address
-
pingAsync
public > pingAsync(long timeout, 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)
Description copied from interface:Node
Ping Redis node with specified timeout.
-
hashCode
public int hashCode()
- Overrides:
in class
-
equals
public boolean equals( obj)
- Overrides:
in class
-
time
public Time time()
Description copied from interface:Node
Returns current Redis server time in seconds
-
clusterInfoAsync
public <,>> clusterInfoAsync()
- Specified by:
clusterInfoAsync
in interfaceNodeAsync
-
clusterInfo
public <,> clusterInfo()
Description copied from interface:ClusterNode
Execute CLUSTER INFO operation.- Specified by:
clusterInfo
in interfaceClusterNode
- Returns:
- value mapped by field
-
info
public <,> info(Node.InfoSection section)
-
infoAsync
public <,>> infoAsync(Node.InfoSection section)
-
toString
public toString()
- Overrides:
in class
-
-