Class SourceNodeLeftClusterDuringPropagationEvent

java.lang.Object
com.atlassian.confluence.internal.index.event.SourceNodeLeftClusterDuringPropagationEvent
All Implemented Interfaces:
Serializable

@AsynchronousPreferred public class SourceNodeLeftClusterDuringPropagationEvent extends Object implements Serializable
Represents an event that occurs when a source node leaves the cluster during the propagation of index snapshot.

This event is typically used to handle scenarios where a node that initiated a site reindexing process becomes unavailable, allowing the system to take appropriate actions such as marking the job as failed or incrementing restore check counts.

The event is marked with AsynchronousPreferred, indicating that it should be processed asynchronously to optimize performance

See Also:
  • Constructor Details

    • SourceNodeLeftClusterDuringPropagationEvent

      public SourceNodeLeftClusterDuringPropagationEvent(String sourceNodeId, SourceNodeExitAction exitAction, int restoreCheckCount)
      Constructs a new event indicating that a source node has left the cluster during propagation.
      Parameters:
      sourceNodeId - the identifier of the source node
      exitAction - the action to be taken upon node exit
      restoreCheckCount - the number of times restore checks have been attempted
  • Method Details

    • getExitAction

      public SourceNodeExitAction getExitAction()
      Returns the action to be taken when the source node exits the cluster.
      Returns:
      the exit action
    • getSourceNodeId

      public String getSourceNodeId()
      Returns the identifier of the source node that initiated the site reindexing.
      Returns:
      the source node ID
    • getRestoreCheckCount

      public int getRestoreCheckCount()
      Returns the count of how many times a restore checks have been attempted.
      Returns:
      the restore check count