Package com.tangosol.net.cache
Class OverflowMap.HistoricCacheEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.tangosol.util.MapEvent<K,V>
-
- com.tangosol.net.cache.CacheEvent
-
- com.tangosol.net.cache.OverflowMap.HistoricCacheEvent
-
- All Implemented Interfaces:
PortableObject
,Serializable
- Enclosing class:
- OverflowMap
protected static class OverflowMap.HistoricCacheEvent extends CacheEvent
A CacheEvent that carries a recent value (to avoid it being lost during eviction).- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tangosol.net.cache.CacheEvent
CacheEvent.TransformationState
-
-
Field Summary
Fields Modifier and Type Field Description protected Object
m_oValueLatestOld
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
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getLatestOldValue()
Obtain 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 Detail
-
m_oValueLatestOld
protected Object m_oValueLatestOld
A previous value, but the most recent of the previous values.
-
-
Constructor Detail
-
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 Detail
-
getLatestOldValue
public Object 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
-
-