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 public class RedisNodes<N extends Node> extends Object implements NodesGroup<N>
Deprecated.- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description RedisNodes(ConnectionManager connectionManager, CommandAsyncExecutor commandExecutor)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
addConnectionListener(ConnectionListener connectionListener)
Deprecated.Adds connection listener which will be triggered when Redisson connected to or disconnected from Redis serverN
getNode(String address)
Deprecated.Get Redis node by address in format:redis://host:port
Collection<N>
getNodes()
Deprecated.All Redis nodes used by Redisson.Collection<N>
getNodes(NodeType type)
Deprecated.Get all Redis nodes by typeboolean
pingAll()
Deprecated.Ping all Redis nodes.boolean
pingAll(long timeout, TimeUnit timeUnit)
Deprecated.Ping all Redis nodes with specified timeout per nodevoid
removeConnectionListener(int listenerId)
Deprecated.Removes connection listener by id
-
-
-
Constructor Detail
-
RedisNodes
public RedisNodes(ConnectionManager connectionManager, CommandAsyncExecutor commandExecutor)
Deprecated.
-
-
Method Detail
-
getNode
public N getNode(String address)
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
public Collection<N> getNodes(NodeType type)
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
public Collection<N> 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
public boolean pingAll(long timeout, TimeUnit timeUnit)
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
public int addConnectionListener(ConnectionListener connectionListener)
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
-
-