ClusterNodesGroup
RedisClusterNodes
, RedisNodes
public interface NodesGroup<N extends Node>
Modifier and Type | Method | Description |
---|---|---|
int |
addConnectionListener(ConnectionListener connectionListener) |
Adds connection listener which will be triggered
when Redisson has just been connected to or disconnected from redis server
|
N |
getNode(String address) |
Get Redis node by address in format:
redis://host:port |
Collection<N> |
getNodes() |
All Redis nodes used by Redisson.
|
Collection<N> |
getNodes(NodeType type) |
Get all Redis nodes by type
|
boolean |
pingAll() |
Ping all Redis nodes
|
void |
removeConnectionListener(int listenerId) |
Removes connection listener by id
|
int addConnectionListener(ConnectionListener connectionListener)
connectionListener
- - connection listenervoid removeConnectionListener(int listenerId)
listenerId
- - id of connection listenerN getNode(String address)
redis://host:port
address
- of nodeCollection<N> getNodes(NodeType type)
type
- - type of nodeCollection<N> getNodes()
boolean pingAll()
true
if all nodes have replied "PONG", false
in other case.Copyright © 2014–2018 The Redisson Project. All rights reserved.