public class PartitionLostEvent extends Object implements DataSerializable, PartitionEvent
Partition, 
PartitionService, 
PartitionLostListener| Constructor and Description | 
|---|
PartitionLostEvent()  | 
PartitionLostEvent(int partitionId,
                  int lostBackupCount,
                  Address eventSource)  | 
| Modifier and Type | Method and Description | 
|---|---|
Address | 
getEventSource()
Returns the address of the node that dispatches the event 
 | 
int | 
getLostBackupCount()
Returns the number of lost backups for the partition. 
 | 
int | 
getPartitionId()
Returns the lost partition ID. 
 | 
void | 
readData(ObjectDataInput in)
Reads fields from the input stream 
 | 
String | 
toString()  | 
void | 
writeData(ObjectDataOutput out)
Writes object fields to output stream 
 | 
public PartitionLostEvent()
public PartitionLostEvent(int partitionId,
                          int lostBackupCount,
                          Address eventSource)
public int getPartitionId()
getPartitionId in interface PartitionEventpublic int getLostBackupCount()
IPartition.MAX_BACKUP_COUNT is returned.public Address getEventSource()
public void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
                     an IOException may be thrown if the
                     output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
                     an IOException may be thrown if the
                     input stream has been closed.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.