Class ClusterMembershipEvent

java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.cluster.ClusterNodeEvent
com.atlassian.bitbucket.event.cluster.ClusterMembershipEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClusterNodeAddedEvent, ClusterNodeRemovedEvent

public abstract class ClusterMembershipEvent extends ClusterNodeEvent
A base class for events related to cluster membership, raised when nodes join and leave the cluster.

This class exists primarily to simplify writing event types. Plugins generally should not listen for this base class; they should listen for specific subclasses.

See Also:
  • Method Details

    • getCurrentNodes

      @Nonnull public Set<ClusterNode> getCurrentNodes()
      Retrieves the current set of cluster nodes at the time the event was raised. If a new node has joined, it will be in the returned set. If an existing node has departed, it will not be.
      Returns:
      the current cluster nodes