N - node type@Deprecated public class RedisNodes<N extends Node> extends Object implements NodesGroup<N>
| Constructor and Description |
|---|
RedisNodes(ConnectionManager connectionManager,
CommandAsyncExecutor commandExecutor)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addConnectionListener(ConnectionListener connectionListener)
Deprecated.
Adds connection listener which will be triggered
when Redisson connected to or disconnected from Redis server
|
N |
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 type
|
boolean |
pingAll()
Deprecated.
Ping all Redis nodes.
|
boolean |
pingAll(long timeout,
TimeUnit timeUnit)
Deprecated.
Ping all Redis nodes with specified timeout per node
|
void |
removeConnectionListener(int listenerId)
Deprecated.
Removes connection listener by id
|
public RedisNodes(ConnectionManager connectionManager, CommandAsyncExecutor commandExecutor)
public N getNode(String address)
NodesGroupredis://host:portgetNode in interface NodesGroup<N extends Node>address - of nodepublic Collection<N> getNodes(NodeType type)
NodesGroupgetNodes in interface NodesGroup<N extends Node>type - - type of nodepublic Collection<N> getNodes()
NodesGroupgetNodes in interface NodesGroup<N extends Node>public boolean pingAll(long timeout,
TimeUnit timeUnit)
NodesGrouppingAll in interface NodesGroup<N extends Node>true if all nodes replied "PONG", false in other case.public boolean pingAll()
NodesGrouppingAll in interface NodesGroup<N extends Node>true if all nodes replied "PONG", false in other case.public int addConnectionListener(ConnectionListener connectionListener)
NodesGroupaddConnectionListener in interface NodesGroup<N extends Node>connectionListener - - connection listenerpublic void removeConnectionListener(int listenerId)
NodesGroupremoveConnectionListener in interface NodesGroup<N extends Node>listenerId - - id of connection listenerCopyright © 2014–2021 Redisson. All rights reserved.