Class CacheContinuousQueryManager.CacheEntryEventImpl
- java.lang.Object
-
- java.util.EventObject
-
- javax.cache.event.CacheEntryEvent<K,V>
-
- org.apache.ignite.cache.query.CacheEntryEventAdapter<K,V>
-
- org.apache.ignite.cache.query.CacheQueryEntryEvent
-
- org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryManager.CacheEntryEventImpl
-
- All Implemented Interfaces:
Serializable,javax.cache.Cache.Entry
- Enclosing class:
- CacheContinuousQueryManager<K,V>
public static class CacheContinuousQueryManager.CacheEntryEventImpl extends CacheQueryEntryEvent
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description CacheEntryEventImpl(javax.cache.Cache src, javax.cache.event.EventType evtType, Object key, Object val)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetKey()ObjectgetNewValue()ObjectgetOldValue()longgetPartitionUpdateCounter()Each cache update increases partition counter.booleanisOldValueAvailable()StringtoString()-
Methods inherited from class org.apache.ignite.cache.query.CacheEntryEventAdapter
getValue, unwrap
-
-
-
-
Method Detail
-
getPartitionUpdateCounter
public long getPartitionUpdateCounter()
Each cache update increases partition counter. The same cache updates have on the same value of counter on primary and backup nodes. This value can be useful to communicate with external applications.- Specified by:
getPartitionUpdateCounterin classCacheQueryEntryEvent- Returns:
- Value of counter for this event.
-
getOldValue
public Object getOldValue()
- Specified by:
getOldValuein classjavax.cache.event.CacheEntryEvent
-
isOldValueAvailable
public boolean isOldValueAvailable()
- Specified by:
isOldValueAvailablein classjavax.cache.event.CacheEntryEvent
-
getKey
public Object getKey()
-
getNewValue
public Object getNewValue()
- Specified by:
getNewValuein classCacheEntryEventAdapter
-
toString
public String toString()
- Overrides:
toStringin classEventObject
-
-