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
|
N |
getNode(String address)
Get Redis node by address in format:
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)
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–2017 The Redisson Project. All rights reserved.