Package org.redisson
Class RedisNodes<N extends Node>
java.lang.Object
org.redisson.RedisNodes<N>
- Type Parameters:
N
- node type
- All Implemented Interfaces:
NodesGroup<N>
- Direct Known Subclasses:
RedisClusterNodes
Deprecated.
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorDescriptionRedisNodes
(ConnectionManager connectionManager, ServiceManager serviceManager, CommandAsyncExecutor commandExecutor) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionint
addConnectionListener
(ConnectionListener connectionListener) Deprecated.Adds connection listener which will be triggered when Redisson connected to or disconnected from Redis serverDeprecated.Get Redis node by address in format:redis://host:port
getNodes()
Deprecated.All Redis nodes used by Redisson.Deprecated.Get all Redis nodes by typeboolean
pingAll()
Deprecated.Ping all Redis nodes.boolean
Deprecated.Ping all Redis nodes with specified timeout per nodevoid
removeConnectionListener
(int listenerId) Deprecated.Removes connection listener by id
-
Constructor Details
-
RedisNodes
public RedisNodes(ConnectionManager connectionManager, ServiceManager serviceManager, CommandAsyncExecutor commandExecutor) Deprecated.
-
-
Method Details
-
getNode
Deprecated.Description copied from interface:NodesGroup
Get Redis node by address in format:redis://host:port
- Specified by:
getNode
in interfaceNodesGroup<N extends Node>
- Parameters:
address
- of node- Returns:
- node
-
getNodes
Deprecated.Description copied from interface:NodesGroup
Get all Redis nodes by type- Specified by:
getNodes
in interfaceNodesGroup<N extends Node>
- Parameters:
type
- - type of node- Returns:
- collection of nodes
-
getNodes
Deprecated.Description copied from interface:NodesGroup
All Redis nodes used by Redisson. This collection may change during master change, cluster topology update and etc.- Specified by:
getNodes
in interfaceNodesGroup<N extends Node>
- Returns:
- collection of nodes
-
pingAll
Deprecated.Description copied from interface:NodesGroup
Ping all Redis nodes with specified timeout per node- Specified by:
pingAll
in interfaceNodesGroup<N extends Node>
- Returns:
true
if all nodes replied "PONG",false
in other case.
-
pingAll
public boolean pingAll()Deprecated.Description copied from interface:NodesGroup
Ping all Redis nodes. Default timeout per Redis node is 1000 milliseconds- Specified by:
pingAll
in interfaceNodesGroup<N extends Node>
- Returns:
true
if all nodes replied "PONG",false
in other case.
-
addConnectionListener
Deprecated.Description copied from interface:NodesGroup
Adds connection listener which will be triggered when Redisson connected to or disconnected from Redis server- Specified by:
addConnectionListener
in interfaceNodesGroup<N extends Node>
- Parameters:
connectionListener
- - connection listener- Returns:
- id of listener
-
removeConnectionListener
public void removeConnectionListener(int listenerId) Deprecated.Description copied from interface:NodesGroup
Removes connection listener by id- Specified by:
removeConnectionListener
in interfaceNodesGroup<N extends Node>
- Parameters:
listenerId
- - id of connection listener
-