Package org.redisson.api
Interface NodesGroup<N extends Node>
- All Known Subinterfaces:
ClusterNodesGroup
- All Known Implementing Classes:
RedisClusterNodes
,RedisNodes
Deprecated.
- Author:
- Nikita Koksharov
-
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
-
Method Details
-
addConnectionListener
Deprecated.Adds connection listener which will be triggered when Redisson connected to or disconnected from Redis server- Parameters:
connectionListener
- - connection listener- Returns:
- id of listener
-
removeConnectionListener
void removeConnectionListener(int listenerId) Deprecated.Removes connection listener by id- Parameters:
listenerId
- - id of connection listener
-
getNode
Deprecated.Get Redis node by address in format:redis://host:port
- Parameters:
address
- of node- Returns:
- node
-
getNodes
Deprecated.Get all Redis nodes by type- Parameters:
type
- - type of node- Returns:
- collection of nodes
-
getNodes
Collection<N> getNodes()Deprecated.All Redis nodes used by Redisson. This collection may change during master change, cluster topology update and etc.- Returns:
- collection of nodes
-
pingAll
boolean pingAll()Deprecated.Ping all Redis nodes. Default timeout per Redis node is 1000 milliseconds- Returns:
true
if all nodes replied "PONG",false
in other case.
-
pingAll
Deprecated.Ping all Redis nodes with specified timeout per node- Returns:
true
if all nodes replied "PONG",false
in other case.
-