@AsynchronousPreferred public class ClusterNodeRejoinedEvent extends ClusterNodeAddedEvent
ClusterNodeAddedEvent that is raised when a node reconnects to the current node. This
happens when a network partition is resolved, for instance due to intermittent networking issues.
Note: when a network partition in a larger cluster occurs, the node may receive multiple
ClusterNodeRejoinedEvents when the partitions merge - one for each node-to-node connection that is
reestablished.
source| Constructor and Description |
|---|
ClusterNodeRejoinedEvent(Object source,
ClusterNode node,
Set<ClusterNode> currentNodes,
long timestampDisconnected,
long timestampReconnected) |
| Modifier and Type | Method and Description |
|---|---|
Date |
getDateDisconnected() |
Date |
getDateReconnected() |
boolean |
isMaybeNetworkPartitionResolved() |
getAddedNodegetCurrentNodesgetDategetSource, toStringpublic ClusterNodeRejoinedEvent(@Nonnull Object source, @Nonnull ClusterNode node, @Nonnull Set<ClusterNode> currentNodes, long timestampDisconnected, long timestampReconnected)
@Nonnull public Date getDateDisconnected()
@Nonnull public Date getDateReconnected()
public boolean isMaybeNetworkPartitionResolved()
isMaybeNetworkPartitionResolved in class ClusterNodeAddedEventtrue if the node joining the cluster may be the result of a network partition (split brain)
having resolved, otherwise false.Copyright © 2019 Atlassian. All rights reserved.