public interface NodeWatcher
ClusterSupport.watchActiveNodes(NodeWatcher)
Modifier and Type | Interface and Description |
---|---|
static class |
NodeWatcher.EventType
The enum defining the action, where it is a node joining event or a node leaving event
|
static class |
NodeWatcher.NodeEvent
The bean that contains the information about the changed node, including its name and whether it is a
NodeWatcher.EventType.NODE_JOINED or a NodeWatcher.EventType.NODE_LEFT |
Modifier and Type | Method and Description |
---|---|
void |
process(NodeWatcher.NodeEvent event)
The node watching will be notifying this method with the
NodeWatcher.NodeEvent that describes the event |
void process(NodeWatcher.NodeEvent event)
NodeWatcher.NodeEvent
that describes the eventevent
- the node event describing the changed nodeCopyright © 2010–2016 AdroitLogic. All rights reserved.