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