Class ClusterNodeRejoinedEvent

All Implemented Interfaces:
Serializable

@AsynchronousPreferred public class ClusterNodeRejoinedEvent extends ClusterNodeAddedEvent
Specialization of 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.

See Also:
  • Constructor Details

    • ClusterNodeRejoinedEvent

      public ClusterNodeRejoinedEvent(@Nonnull Object source, @Nonnull ClusterNode node, @Nonnull Set<ClusterNode> currentNodes, long timestampDisconnected, long timestampReconnected)
  • Method Details

    • getDateDisconnected

      @Nonnull public Date getDateDisconnected()
      Returns:
      the date the node was disconnected from the current node
    • getDateReconnected

      @Nonnull public Date getDateReconnected()
      Returns:
      the date the node reconnected to the current node
    • isMaybeNetworkPartitionResolved

      public boolean isMaybeNetworkPartitionResolved()
      Overrides:
      isMaybeNetworkPartitionResolved in class ClusterNodeAddedEvent
      Returns:
      true if the node joining the cluster may be the result of a network partition (split brain) having resolved, otherwise false.