Package org.redisson.api.redisnode
Interface RedisNode
-
- All Known Subinterfaces:
RedisClusterMaster
,RedisClusterNode
,RedisClusterSlave
,RedisMaster
,RedisSentinel
,RedisSlave
- All Known Implementing Classes:
RedisNode
,SentinelRedisNode
public interface RedisNode
Base Redis node API interface- Author:
- Nikita Koksharov
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RedisNode.InfoSection
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description getAddr()
Get Redis node address<,>
parameter)
Get value of Redis configuration parameter.<,>
getMemoryStatistics()
Returns Redis memory statistics<,>
info(RedisNode.InfoSection section)
Returns information about Redis node.boolean
ping()
Ping Redis node.boolean
ping(long timeout, timeUnit)
Ping Redis node with specified timeout.void
parameter, value)
Set value of Redis configuration parameter.Time
time()
Returns current Redis server time in seconds
-
-
-
Method Detail
-
getMemoryStatistics
<,> getMemoryStatistics()
Returns Redis memory statistics- Returns:
- statistics info map
-
time
Time time()
Returns current Redis server time in seconds- Returns:
- time in seconds
-
getAddr
getAddr()
Get Redis node address- Returns:
- node address
-
ping
boolean ping()
Ping Redis node. Default timeout is 1000 milliseconds- Returns:
true
if "PONG" reply received,false
otherwise
-
ping
boolean ping(long timeout, timeUnit)
Ping Redis node with specified timeout.- Parameters:
timeout
- - ping timeouttimeUnit
- - timeout unit- Returns:
true
if "PONG" reply received,false
otherwise
-
info
<,> info(RedisNode.InfoSection section)
Returns information about Redis node.- Parameters:
section
- - section of information- Returns:
- information
-
getConfig
<,> getConfig( parameter)
Get value of Redis configuration parameter.- Parameters:
parameter
- - name of parameter- Returns:
- value of parameter
-
setConfig
void setConfig( parameter, value)
Set value of Redis configuration parameter.- Parameters:
parameter
- - name of parametervalue
- - value of parameter
-
-