Package org.redisson.api.redisnode
Interface BaseRedisNodes
-
- All Known Subinterfaces:
RedisCluster,RedisMasterSlave,RedisSentinelMasterSlave,RedisSingle
- All Known Implementing Classes:
RedissonBaseNodes,RedissonClusterNodes,RedissonMasterSlaveNodes,RedissonSentinelMasterSlaveNodes,RedissonSingleNode
public interface BaseRedisNodesBase Redis nodes API interface- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanpingAll()Ping all Redis nodes.booleanpingAll(long timeout, TimeUnit timeUnit)Ping all Redis nodes with specified timeout per node
-
-
-
Method Detail
-
pingAll
boolean pingAll()
Ping all Redis nodes. Default timeout per Redis node is 1000 milliseconds- Returns:
trueif all nodes replied "PONG",falsein other case.
-
pingAll
boolean pingAll(long timeout, TimeUnit timeUnit)Ping all Redis nodes with specified timeout per node- Returns:
trueif all nodes replied "PONG",falsein other case.
-
-