public abstract static class ClusterListener.Adapter extends Object implements ClusterListener
ClusterListener.Adapter| Constructor and Description |
|---|
Adapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
elected(String role,
InstanceId instanceId,
URI electedMember)
When a member (including potentially myself) has been elected to a particular role, this callback is invoked.
|
void |
enteredCluster(ClusterConfiguration clusterConfiguration)
When I enter the cluster as a member, this callback notifies me
that this has been agreed upon by the entire cluster.
|
void |
joinedCluster(InstanceId instanceId,
URI member)
When another instance joins as a member, this callback is invoked
|
void |
leftCluster()
When I leave the cluster, this callback notifies me
that this has been agreed upon by the entire cluster.
|
void |
leftCluster(InstanceId instanceId,
URI member)
When another instance leaves the cluster, this callback is invoked.
|
void |
unelected(String role,
InstanceId instanceId,
URI electedMember) |
public void enteredCluster(ClusterConfiguration clusterConfiguration)
ClusterListenerenteredCluster in interface ClusterListenerpublic void joinedCluster(InstanceId instanceId, URI member)
ClusterListenerjoinedCluster in interface ClusterListenerpublic void leftCluster(InstanceId instanceId, URI member)
ClusterListenerleftCluster in interface ClusterListenerpublic void leftCluster()
ClusterListenerleftCluster in interface ClusterListenerpublic void elected(String role, InstanceId instanceId, URI electedMember)
ClusterListenerelected in interface ClusterListenerpublic void unelected(String role, InstanceId instanceId, URI electedMember)
unelected in interface ClusterListenerCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.