Class ClusterNodeAddedEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClusterNodeRejoinedEvent
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.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionClusterNodeAddedEvent
(Object source, ClusterNode node, Set<ClusterNode> currentNodes) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Methods inherited from class com.atlassian.bitbucket.event.cluster.ClusterMembershipEvent
getCurrentNodes
Methods inherited from class com.atlassian.bitbucket.event.cluster.ClusterNodeEvent
getDate
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ClusterNodeAddedEvent
public ClusterNodeAddedEvent(@Nonnull Object source, @Nonnull ClusterNode node, @Nonnull Set<ClusterNode> currentNodes)
-
-
Method Details
-
getAddedNode
- Returns:
- the added node, which will be in the
current nodes
set
-
isMaybeNetworkPartitionResolved
public boolean isMaybeNetworkPartitionResolved()- Returns:
true
if the node joining the cluster may be the result of a network partition (split brain) having resolved, otherwisefalse
.- Since:
- 4.10
-