public interface ClusterListener
Cluster| Modifier and Type | Interface and Description |
|---|---|
static class |
ClusterListener.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) |
void enteredCluster(ClusterConfiguration clusterConfiguration)
clusterConfiguration - void leftCluster()
void joinedCluster(InstanceId instanceId, URI member)
member - void leftCluster(InstanceId instanceId, URI member)
member - void elected(String role, InstanceId instanceId, URI electedMember)
role - electedMember - void unelected(String role, InstanceId instanceId, URI electedMember)
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.