@AsynchronousPreferred public class

ClusterNodeRejoinedEvent

extends ClusterNodeAddedEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.bitbucket.event.cluster.ClusterNodeEvent
       ↳ com.atlassian.bitbucket.event.cluster.ClusterMembershipEvent
         ↳ com.atlassian.bitbucket.event.cluster.ClusterNodeAddedEvent
           ↳ com.atlassian.bitbucket.event.cluster.ClusterNodeRejoinedEvent

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
ClusterNodeRejoinedEvent(Object source, ClusterNode node, Set<ClusterNode> currentNodes, long timestampDisconnected, long timestampReconnected)
Public Methods
@Nonnull Date getDateDisconnected()
@Nonnull Date getDateReconnected()
boolean isMaybeNetworkPartitionResolved()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.event.cluster.ClusterNodeAddedEvent
From class com.atlassian.bitbucket.event.cluster.ClusterMembershipEvent
From class com.atlassian.bitbucket.event.cluster.ClusterNodeEvent
From class java.util.EventObject
From class java.lang.Object

Public Constructors

public ClusterNodeRejoinedEvent (Object source, ClusterNode node, Set<ClusterNode> currentNodes, long timestampDisconnected, long timestampReconnected)

Public Methods

@Nonnull public Date getDateDisconnected ()

Returns
  • the date the node was disconnected from the current node

@Nonnull public Date getDateReconnected ()

Returns
  • the date the node reconnected to the current node

public boolean isMaybeNetworkPartitionResolved ()

Returns
  • true if the node joining the cluster may be the result of a network partition (split brain) having resolved, otherwise false.