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 RedisNodeAsyncBase Redis node API interface- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RFuture<Map<String,String>>getConfigAsync(String parameter)Get value of Redis configuration parameter.RFuture<Map<String,String>>getMemoryStatisticsAsync()Returns Redis memory statisticsRFuture<Map<String,String>>infoAsync(RedisNode.InfoSection section)Returns information about Redis node.RFuture<Boolean>pingAsync()Ping Redis node.RFuture<Boolean>pingAsync(long timeout, TimeUnit timeUnit)Ping Redis node with specified timeout.RFuture<Void>setConfigAsync(String parameter, String value)Set value of Redis configuration parameter.RFuture<Time>timeAsync()Returns current Redis server time in seconds
-
-
-
Method Detail
-
getMemoryStatisticsAsync
RFuture<Map<String,String>> 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
RFuture<Boolean> pingAsync()
Ping Redis node. Default timeout is 1000 milliseconds- Returns:
trueif "PONG" reply received,falseotherwise
-
pingAsync
RFuture<Boolean> pingAsync(long timeout, TimeUnit timeUnit)
Ping Redis node with specified timeout.- Parameters:
timeout- - ping timeouttimeUnit- - timeout unit- Returns:
trueif "PONG" reply received,falseotherwise
-
infoAsync
RFuture<Map<String,String>> infoAsync(RedisNode.InfoSection section)
Returns information about Redis node.- Parameters:
section- - section of information- Returns:
- information map
-
getConfigAsync
RFuture<Map<String,String>> getConfigAsync(String parameter)
Get value of Redis configuration parameter.- Parameters:
parameter- - name of parameter- Returns:
- value of parameter
-
-