public interface RedisNode
Modifier and Type | Interface and Description |
---|---|
static class |
RedisNode.InfoSection |
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getAddr()
Get Redis node address
|
Map<String,String> |
info(RedisNode.InfoSection section) |
boolean |
ping()
Ping Redis node.
|
boolean |
ping(long timeout,
TimeUnit timeUnit)
Ping Redis node with specified timeout.
|
Time |
time()
Returns current Redis server time in seconds
|
Time time()
InetSocketAddress getAddr()
boolean ping()
true
if "PONG" reply received, false
otherwiseboolean ping(long timeout, TimeUnit timeUnit)
timeout
- - ping timeouttimeUnit
- - timeout unittrue
if "PONG" reply received, false
otherwiseMap<String,String> info(RedisNode.InfoSection section)
Copyright © 2014–2020 Redisson. All rights reserved.