com.hazelcast.map.impl
Class MapPartitionEventData

java.lang.Object
  extended by com.hazelcast.map.impl.MapPartitionEventData
All Implemented Interfaces:
EventData, DataSerializable

public class MapPartitionEventData
extends Object

Contains the data related to a map partition event


Field Summary
protected  Address caller
           
protected  int eventType
           
protected  String mapName
           
protected  String source
           
 
Constructor Summary
MapPartitionEventData()
           
MapPartitionEventData(String source, String mapName, Address caller, int partitionId)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

source

protected String source

mapName

protected String mapName

caller

protected Address caller

eventType

protected int eventType
Constructor Detail

MapPartitionEventData

public MapPartitionEventData()

MapPartitionEventData

public MapPartitionEventData(String source,
                             String mapName,
                             Address caller,
                             int partitionId)
Method Detail

getPartitionId

public int getPartitionId()

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Description copied from interface: DataSerializable
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Parameters:
out - output
Throws:
IOException

readData

public void readData(ObjectDataInput in)
              throws IOException
Description copied from interface: DataSerializable
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Parameters:
in - input
Throws:
IOException

toString

public String toString()

getSource

public String getSource()
Specified by:
getSource in interface EventData

getMapName

public String getMapName()
Specified by:
getMapName in interface EventData

getCaller

public Address getCaller()
Specified by:
getCaller in interface EventData

getEventType

public int getEventType()
Specified by:
getEventType in interface EventData


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.