Package com.hazelcast.partition
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:
Partition
,PartitionService
,PartitionLostListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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()
-
Methods inherited from interface com.hazelcast.partition.PartitionEvent
getPartitionId
-
-
-
-
Method Detail
-
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
-
-