Package com.hazelcast.partition
Interface PartitionLostEvent
- All Superinterfaces:
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 Summary
Modifier and TypeMethodDescriptionboolean
Returns true if all replicas of a partition are lostReturns the address of the node that dispatches the eventint
Methods inherited from interface com.hazelcast.partition.PartitionEvent
getPartitionId
-
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
-