public class MapPartitionEventData extends Object
Modifier and Type | Field and Description |
---|---|
protected Address |
caller |
protected int |
eventType |
protected String |
mapName |
protected String |
source |
Constructor and Description |
---|
MapPartitionEventData() |
MapPartitionEventData(String source,
String mapName,
Address caller,
int partitionId) |
Modifier and Type | Method and Description |
---|---|
Address |
getCaller() |
int |
getEventType() |
String |
getMapName() |
int |
getPartitionId() |
String |
getSource() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
protected String source
protected String mapName
protected Address caller
protected int eventType
public int getPartitionId()
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.public String toString()
public String getMapName()
getMapName
in interface EventData
public int getEventType()
getEventType
in interface EventData
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.