com.hazelcast.cache.impl
Interface CacheEventData

All Superinterfaces:
DataSerializable, IdentifiedDataSerializable
All Known Implementing Classes:
CacheEventDataImpl

public interface CacheEventData
extends IdentifiedDataSerializable

Internal event data wrapper used during publishing and dispatching events. An event data is represented by

All key values and old values are represented in serialized Data form.

See Also:
AbstractCacheService.publishEvent(String, CacheEventSet, int), AbstractCacheService.dispatchEvent(Object, CacheEventListener)

Method Summary
 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.
 String getName()
          Gets the name of the cache.
 boolean isOldValueAvailable()
          Returns true if old value is available.
 
Methods inherited from interface com.hazelcast.nio.serialization.IdentifiedDataSerializable
getFactoryId, getId
 
Methods inherited from interface com.hazelcast.nio.serialization.DataSerializable
readData, writeData
 

Method Detail

getCacheEventType

CacheEventType getCacheEventType()
Gets cache event type of this event data.

Returns:
Cache event type.
See Also:
CacheEventType

getName

String getName()
Gets the name of the cache.

Returns:
the name of the cache.

getDataKey

Data getDataKey()
Gets cache entry key as Data.

Returns:
key as Data.

getDataValue

Data getDataValue()
Gets cache entry value as Data.

Returns:
value as Data.

getDataOldValue

Data getDataOldValue()
Gets the old value of entry as Data, if available.

Returns:
if available, old value of entry as Data, else null.

isOldValueAvailable

boolean isOldValueAvailable()
Returns true if old value is available.

Returns:
true of old value is available, else returns false.


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