Package com.hazelcast.partition
Interface PartitionLostEvent
- All Superinterfaces:
PartitionEvent
public interface PartitionLostEvent extends PartitionEvent
The event that is fired when a partition lost its owner and all backups.
- See Also:
Partition
,PartitionService
,PartitionLostListener
-
Method Summary
Modifier and Type Method Description boolean
allReplicasInPartitionLost()
Returns true if all replicas of a partition are lostAddress
getEventSource()
Returns the address of the node that dispatches the eventint
getLostBackupCount()
Returns the number of lost backups for the partition.
-
Method Details
-
getLostBackupCount
int getLostBackupCount()Returns the number of lost backups for the partition. 0: the owner, 1: first backup, 2: second backup... -
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
-