Package org.redisson.api.redisnode
Interface RedisNodeAsync
-
- All Known Subinterfaces:
RedisClusterMaster
,RedisClusterMasterAsync
,RedisClusterNode
,RedisClusterNodeAsync
,RedisClusterSlave
,RedisClusterSlaveAsync
,RedisMaster
,RedisMasterAsync
,RedisSentinel
,RedisSentinelAsync
,RedisSlave
,RedisSlaveAsync
- All Known Implementing Classes:
RedisNode
,SentinelRedisNode
public interface RedisNodeAsync
Base Redis node API interface- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <,>>
parameter)
Get value of Redis configuration parameter.<,>>
getMemoryStatisticsAsync()
Returns Redis memory statistics<,>>
infoAsync(RedisNode.InfoSection section)
Returns information about Redis node.>
pingAsync()
Ping Redis node.>
pingAsync(long timeout, timeUnit)
Ping Redis node with specified timeout.>
parameter, value)
Set value of Redis configuration parameter.RFuture<Time>
timeAsync()
Returns current Redis server time in seconds
-
-
-
Method Detail
-
getMemoryStatisticsAsync
<,>> getMemoryStatisticsAsync()
Returns Redis memory statistics- Returns:
- statistics info map
-
timeAsync
RFuture<Time> timeAsync()
Returns current Redis server time in seconds- Returns:
- time in seconds
-
pingAsync
> pingAsync()
Ping Redis node. Default timeout is 1000 milliseconds- Returns:
true
if "PONG" reply received,false
otherwise
-
pingAsync
> pingAsync(long timeout, timeUnit)
Ping Redis node with specified timeout.- Parameters:
timeout
- - ping timeouttimeUnit
- - timeout unit- Returns:
true
if "PONG" reply received,false
otherwise
-
infoAsync
<,>> infoAsync(RedisNode.InfoSection section)
Returns information about Redis node.- Parameters:
section
- - section of information- Returns:
- information map
-
getConfigAsync
<,>> getConfigAsync( parameter)
Get value of Redis configuration parameter.- Parameters:
parameter
- - name of parameter- Returns:
- value of parameter
-
setConfigAsync
> setConfigAsync( parameter, value)
Set value of Redis configuration parameter.- Parameters:
parameter
- - name of parametervalue
- - value of parameter- Returns:
- void
-
-