Interface PartitionLostEvent

All Superinterfaces:
PartitionEvent

public interface PartitionLostEvent extends PartitionEvent
The event is fired when a primary replica of the partition is lost. If a backup node crashes when owner of the partition is still alive, a partition lost event won't be fired.
See Also:
  • Method Details

    • getLostBackupCount

      int getLostBackupCount()
      Returns:
      0 if primary replica is lost, otherwise returns count of lost backup replicas
    • allReplicasInPartitionLost

      boolean allReplicasInPartitionLost()
      Returns true if all replicas of a partition are lost
    • getEventSource

      Address getEventSource()
      Returns the address of the node that dispatches the event
      Returns:
      the address of the node that dispatches the event