Package com.tangosol.net.cache
Class OverflowMap.HistoricCacheEvent
java.lang.Object
java.util.EventObject
com.tangosol.util.MapEvent
com.tangosol.net.cache.CacheEvent
com.tangosol.net.cache.OverflowMap.HistoricCacheEvent
- All Implemented Interfaces:
PortableObject
,Serializable
- Enclosing class:
OverflowMap
A CacheEvent that carries a recent value (to avoid it being lost during
eviction).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.net.cache.CacheEvent
CacheEvent.TransformationState
-
Field Summary
Modifier and TypeFieldDescriptionprotected Object
A previous value, but the most recent of the previous values.Fields inherited from class com.tangosol.net.cache.CacheEvent
EXPIRED, m_nFlags, m_transformState, PRIMING, SYNTHETIC
Fields inherited from class com.tangosol.util.MapEvent
ENTRY_DELETED, ENTRY_INSERTED, ENTRY_UPDATED, m_key, m_nId, m_nPartition, m_nVersion, m_valueNew, m_valueOld
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionHistoricCacheEvent
(ObservableMap map, int nId, Object oKey, Object oValueOld, Object oValueNew, boolean fSynthetic, Object oValueRecent) Create a Historic CacheEvent that contains the most recent value before the now-current value. -
Method Summary
Modifier and TypeMethodDescriptionObtain the value that needs to be saved if this event represents a merged sequence of events ending with the eviction of data.Methods inherited from class com.tangosol.net.cache.CacheEvent
getDescription, getTransformationState, isExpired, isPriming, isSynthetic, isVersionUpdate, shouldDispatch, with
Methods inherited from class com.tangosol.util.MapEvent
dispatch, dispatch, dispatch, getDescription, getId, getKey, getMap, getNewEntry, getNewValue, getOldEntry, getOldValue, getPartition, getVersion, isDelete, isInsert, isUpdate, readExternal, toString, writeExternal
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
m_oValueLatestOld
A previous value, but the most recent of the previous values.
-
-
Constructor Details
-
HistoricCacheEvent
public HistoricCacheEvent(ObservableMap map, int nId, Object oKey, Object oValueOld, Object oValueNew, boolean fSynthetic, Object oValueRecent) Create a Historic CacheEvent that contains the most recent value before the now-current value.- Parameters:
map
- the ObservableMap object that fired the eventnId
- this event id as defined by the MapEvent classoKey
- the key into the mapoValueOld
- the old value (for update and delete events)oValueNew
- the new value (for insert and update events)fSynthetic
- true iff the event is historically syntheticoValueRecent
- the most recent value before the new value
-
-
Method Details
-
getLatestOldValue
Obtain the value that needs to be saved if this event represents a merged sequence of events ending with the eviction of data.- Returns:
- the most recent data value before the new value
-