Package org.redisson.redisnode
Class RedissonBaseNodes
- java.lang.Object
-
- org.redisson.redisnode.RedissonBaseNodes
-
- All Implemented Interfaces:
BaseRedisNodes
- Direct Known Subclasses:
RedissonClusterNodes,RedissonMasterSlaveNodes,RedissonSingleNode
public class RedissonBaseNodes extends Object implements BaseRedisNodes
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description RedissonBaseNodes(ConnectionManager connectionManager, CommandAsyncExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RedisNodegetNode(String address, NodeType nodeType)protected List<RedisNode>getNodes()protected <T extends RedisNode>
Collection<T>getNodes(NodeType type)booleanpingAll()Ping all Redis nodes.booleanpingAll(long timeout, TimeUnit timeUnit)Ping all Redis nodes with specified timeout per node
-
-
-
Constructor Detail
-
RedissonBaseNodes
public RedissonBaseNodes(ConnectionManager connectionManager, CommandAsyncExecutor commandExecutor)
-
-
Method Detail
-
getNodes
protected <T extends RedisNode> Collection<T> getNodes(NodeType type)
-
pingAll
public boolean pingAll(long timeout, TimeUnit timeUnit)Description copied from interface:BaseRedisNodesPing all Redis nodes with specified timeout per node- Specified by:
pingAllin interfaceBaseRedisNodes- Returns:
trueif all nodes replied "PONG",falsein other case.
-
pingAll
public boolean pingAll()
Description copied from interface:BaseRedisNodesPing all Redis nodes. Default timeout per Redis node is 1000 milliseconds- Specified by:
pingAllin interfaceBaseRedisNodes- Returns:
trueif all nodes replied "PONG",falsein other case.
-
-