public class CacheEventDataImpl extends Object implements CacheEventData
CacheEventData.CacheEventData| Constructor and Description |
|---|
CacheEventDataImpl() |
CacheEventDataImpl(String name,
CacheEventType eventType,
Data dataKey,
Data dataNewValue,
Data dataOldValue,
boolean isOldValueAvailable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
CacheEventType |
getCacheEventType()
Gets cache event type of this event data.
|
Data |
getDataKey()
Gets cache entry key as
Data. |
Data |
getDataOldValue()
Gets the old value of entry as
Data, if available. |
Data |
getDataValue()
Gets cache entry value as
Data. |
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
int |
getId()
Returns type identifier for this class.
|
String |
getName()
Gets the name of the cache.
|
int |
hashCode() |
boolean |
isOldValueAvailable()
Returns true if old value is available.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public CacheEventDataImpl()
public CacheEventDataImpl(String name, CacheEventType eventType, Data dataKey, Data dataNewValue, Data dataOldValue, boolean isOldValueAvailable)
public String getName()
CacheEventDatagetName in interface CacheEventDatapublic CacheEventType getCacheEventType()
CacheEventDatagetCacheEventType in interface CacheEventDataCacheEventTypepublic Data getDataKey()
CacheEventDataData.getDataKey in interface CacheEventDataData.public Data getDataValue()
CacheEventDataData.getDataValue in interface CacheEventDataData.public Data getDataOldValue()
CacheEventDataData, if available.getDataOldValue in interface CacheEventDataData, else null.public boolean isOldValueAvailable()
CacheEventDataisOldValueAvailable in interface CacheEventDatapublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionpublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablepublic int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializableCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.