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 |
---|---|
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.
|
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()
CacheEventData
getName
in interface CacheEventData
public CacheEventType getCacheEventType()
CacheEventData
getCacheEventType
in interface CacheEventData
CacheEventType
public Data getDataKey()
CacheEventData
Data
.getDataKey
in interface CacheEventData
Data
.public Data getDataValue()
CacheEventData
Data
.getDataValue
in interface CacheEventData
Data
.public Data getDataOldValue()
CacheEventData
Data
, if available.getDataOldValue
in interface CacheEventData
Data
, else null.public boolean isOldValueAvailable()
CacheEventData
isOldValueAvailable
in interface CacheEventData
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.