Package org.redisson.redisnode
Class RedissonBaseNodes
-
- org.redisson.redisnode.RedissonBaseNodes
-
- All Implemented Interfaces:
BaseRedisNodes
- Direct Known Subclasses:
RedissonClusterNodes
,RedissonMasterSlaveNodes
,RedissonSingleNode
public class RedissonBaseNodes extends 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
address, NodeType nodeType)
protected <RedisNode>
getNodes()
protected <T extends <T>
getNodes(NodeType type)
boolean
pingAll()
Ping all Redis nodes.boolean
pingAll(long timeout, 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 <T> getNodes(NodeType type)
-
getNode
protected address, NodeType nodeType)
-
getNodes
protected <RedisNode> getNodes()
-
pingAll
public boolean pingAll(long timeout, 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.
-
-