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> |
getConfig(String parameter)
Get value of Redis configuration parameter.
|
Map<String,String> |
getMemoryStatistics()
Returns Redis memory statistics
|
Map<String,String> |
info(RedisNode.InfoSection section)
Returns information about Redis node.
|
boolean |
ping()
Ping Redis node.
|
boolean |
ping(long timeout,
TimeUnit timeUnit)
Ping Redis node with specified timeout.
|
void |
setConfig(String parameter,
String value)
Set value of Redis configuration parameter.
|
Time |
time()
Returns current Redis server time in seconds
|
Map<String,String> getMemoryStatistics()
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)
section
- - section of informationMap<String,String> getConfig(String parameter)
parameter
- - name of parameterCopyright © 2014–2021 Redisson. All rights reserved.