public interface Group
Modifier and Type | Interface and Description |
---|---|
static interface |
Group.Listener
Listener for membership changes.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(Group.Listener listener)
Registers a membership listener for the group.
|
Node |
getCoordinatorNode()
Returns the group coordinator node.
|
Node |
getLocalNode()
Returns the local node.
|
String |
getName()
Returns the name of this group.
|
List<Node> |
getNodes()
Returns the list of nodes that are members of this group.
|
boolean |
isCoordinator()
Indicates whether or not we are the group coordinator.
|
void |
removeListener(Group.Listener listener)
Removes a registered listener from the group.
|
void addListener(Group.Listener listener)
listener
- listener to be addedvoid removeListener(Group.Listener listener)
listener
- listener to be removedString getName()
boolean isCoordinator()
Node getLocalNode()
Node getCoordinatorNode()
Copyright © 2016 JBoss by Red Hat. All rights reserved.