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 PartitionEvent
public int getLostBackupCount()
IPartition.MAX_BACKUP_COUNT
is returned.public Address getEventSource()
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- 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
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.Copyright © 2018 Hazelcast, Inc.. All rights reserved.