public class TopologyChangeEvent extends Object
| Constructor and Description |
|---|
TopologyChangeEvent(boolean coordinatorHasChanged,
boolean coordinator)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCoordinator()
Indicates whether the current node is the coordinator or not after the topology change
|
boolean |
isCoordinatorHasChanged()
Indicates whether the coordinator has changed after the topology change
|
public TopologyChangeEvent(boolean coordinatorHasChanged,
boolean coordinator)
coordinatorHasChanged - this parameter is set to true if the
coordinator has changed, false otherwisecoordinator - this parameter is set to true if the current node
is the coordinator, false otherwisepublic boolean isCoordinator()
true if the current node is the coordinator, false otherwise.public boolean isCoordinatorHasChanged()
true if the coordinator has changed, false otherwise.Copyright © 2019 eXo Platform SAS. All Rights Reserved.