public abstract class

ClusterMembershipEvent

extends ClusterNodeEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.bitbucket.event.cluster.ClusterNodeEvent
       ↳ com.atlassian.bitbucket.event.cluster.ClusterMembershipEvent
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Methods
@Nonnull Set<ClusterNode> getCurrentNodes()
Retrieves the current set of cluster nodes at the time the event was raised.
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.event.cluster.ClusterNodeEvent
From class java.util.EventObject
From class java.lang.Object

Public Methods

@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