Package org.apache.ignite.cache.query
Class CacheQueryEntryEvent<K,V>
- 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<K,V>
-
- Type Parameters:
K
- The type of key.V
- The type of value.
- All Implemented Interfaces:
Serializable
,javax.cache.Cache.Entry<K,V>
public abstract class CacheQueryEntryEvent<K,V> extends CacheEntryEventAdapter<K,V>
A Cache continuous query entry event.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description CacheQueryEntryEvent(javax.cache.Cache src, javax.cache.event.EventType evtType)
Constructs a cache entry event from a given cache as source.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract long
getPartitionUpdateCounter()
Each cache update increases partition counter.-
Methods inherited from class org.apache.ignite.cache.query.CacheEntryEventAdapter
getNewValue, getValue, unwrap
-
Methods inherited from class javax.cache.event.CacheEntryEvent
getEventType, getOldValue, getSource, isOldValueAvailable
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Method Detail
-
getPartitionUpdateCounter
public abstract 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.- Returns:
- Value of counter for this event.
-
-