Group.Listener
Constructor and Description |
---|
CacheGroupService(CacheGroupConfiguration config) |
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.
|
Group |
getValue() |
boolean |
isCoordinator()
Indicates whether or not we are the group coordinator.
|
void |
removeListener(Group.Listener listener)
Removes a registered listener from the group.
|
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
void |
topologyChanged(org.infinispan.notifications.cachelistener.event.TopologyChangedEvent<?,?> event) |
public CacheGroupService(CacheGroupConfiguration config)
public Group getValue()
getValue
in interface org.jboss.msc.value.Value<Group>
public void start(org.jboss.msc.service.StartContext context)
start
in interface org.jboss.msc.service.Service<Group>
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<Group>
public String getName()
Group
public boolean isCoordinator()
Group
isCoordinator
in interface Group
public Node getLocalNode()
Group
getLocalNode
in interface Group
public Node getCoordinatorNode()
Group
getCoordinatorNode
in interface Group
public List<Node> getNodes()
Group
public void topologyChanged(org.infinispan.notifications.cachelistener.event.TopologyChangedEvent<?,?> event)
public void addListener(Group.Listener listener)
Group
addListener
in interface Group
listener
- listener to be addedpublic void removeListener(Group.Listener listener)
Group
removeListener
in interface Group
listener
- listener to be removedCopyright © 2015 JBoss by Red Hat. All rights reserved.