@AsynchronousPreferred public class ClusterNodeAddedEvent extends ClusterMembershipEvent
new node
joins the cluster.
Due to the non-deterministic nature of event processing, it is possible the other nodes may have joined or left the
cluster. As a result, using the ClusterInformation
to determine the cluster nodes may be inconsistent. ClusterMembershipEvent.getCurrentNodes()
is provided to simplify deterministic
processing in listeners.
source
Constructor and Description |
---|
ClusterNodeAddedEvent(Object source,
ClusterNode node,
Set<ClusterNode> currentNodes) |
Modifier and Type | Method and Description |
---|---|
ClusterNode |
getAddedNode() |
boolean |
isMaybeNetworkPartitionResolved() |
getCurrentNodes
getDate
getSource, toString
public ClusterNodeAddedEvent(@Nonnull Object source, @Nonnull ClusterNode node, @Nonnull Set<ClusterNode> currentNodes)
@Nonnull public ClusterNode getAddedNode()
current nodes
setpublic boolean isMaybeNetworkPartitionResolved()
true
if the node joining the cluster may be the result of a network partition (split brain)
having resolved, otherwise false
.Copyright © 2021 Atlassian. All rights reserved.