Package org.redisson.api
Interface Node
-
- All Superinterfaces:
NodeAsync
- All Known Subinterfaces:
ClusterNode
- All Known Implementing Classes:
RedisClientEntry
public interface Node extends NodeAsync
Redis node interface- Author:
- Nikita Koksharov
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Node.InfoSection
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InetSocketAddress
getAddr()
Get Redis node addressNodeType
getType()
Returns node typeMap<String,String>
info(Node.InfoSection section)
boolean
ping()
Ping Redis node by PING command.Time
time()
Returns current Redis server time in seconds-
Methods inherited from interface org.redisson.api.NodeAsync
clusterInfoAsync, infoAsync, pingAsync, timeAsync
-
-
-
-
Method Detail
-
info
Map<String,String> info(Node.InfoSection section)
-
time
Time time()
Returns current Redis server time in seconds- Returns:
- time in seconds
-
getType
NodeType getType()
Returns node type- Returns:
- node type
-
getAddr
InetSocketAddress getAddr()
Get Redis node address- Returns:
- node address
-
ping
boolean ping()
Ping Redis node by PING command.- Returns:
true
if PONG received,false
otherwise
-
-