public class IPartitionLostEvent extends Object implements DataSerializable
PartitionAwareService.onPartitionLost(com.hazelcast.spi.partition.IPartitionLostEvent)
 
 It contains the partition id, number of replicas that is lost and the address of node that detects the partition lost| Constructor and Description | 
|---|
| IPartitionLostEvent() | 
| IPartitionLostEvent(int partitionId,
                   int lostReplicaIndex,
                   Address eventSource) | 
| Modifier and Type | Method and Description | 
|---|---|
| Address | getEventSource()The address of the node that detects the partition lost | 
| int | getLostReplicaIndex()0-based replica index that is lost for the partition
 For instance, 0 means only the owner of the partition is lost, 1 means both the owner and first backup are lost | 
| int | getPartitionId()The partition id that is lost | 
| void | readData(ObjectDataInput in)Reads fields from the input stream | 
| String | toString() | 
| void | writeData(ObjectDataOutput out)Writes object fields to output stream | 
public IPartitionLostEvent()
public IPartitionLostEvent(int partitionId,
                   int lostReplicaIndex,
                   Address eventSource)
public int getPartitionId()
public int getLostReplicaIndex()
public Address getEventSource()
public void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.