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:
- 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).
Method Summary |
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. |
m_oValueLatestOld
protected Object m_oValueLatestOld
- A previous value, but the most recent of the previous values.
OverflowMap.HistoricCacheEvent
public OverflowMap.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
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