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 RedisNode
getNode(String address, NodeType nodeType)
protected List<RedisNode>
getNodes()
protected <T extends RedisNode>
Collection<T>getNodes(NodeType type)
boolean
pingAll()
Ping all Redis nodes.boolean
pingAll(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:BaseRedisNodes
Ping all Redis nodes with specified timeout per node- Specified by:
pingAll
in interfaceBaseRedisNodes
- Returns:
true
if all nodes replied "PONG",false
in other case.
-
pingAll
public boolean pingAll()
Description copied from interface:BaseRedisNodes
Ping all Redis nodes. Default timeout per Redis node is 1000 milliseconds- Specified by:
pingAll
in interfaceBaseRedisNodes
- Returns:
true
if all nodes replied "PONG",false
in other case.
-
-