Package com.tangosol.util
Class ConverterCollections.ConverterCacheEvent<K,V>
- java.lang.Object
-
- java.util.EventObject
-
- com.tangosol.util.MapEvent<K,V>
-
- com.tangosol.net.cache.CacheEvent<K,V>
-
- com.tangosol.util.ConverterCollections.ConverterMapEvent<K,V>
-
- com.tangosol.util.ConverterCollections.ConverterCacheEvent<K,V>
-
- All Implemented Interfaces:
PortableObject
,Serializable
- Enclosing class:
- ConverterCollections
public static class ConverterCollections.ConverterCacheEvent<K,V> extends ConverterCollections.ConverterMapEvent<K,V>
A Converter CacheEvent views an underlying CacheEvent through a set of key and value Converters.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tangosol.util.ConverterCollections.ConverterMapEvent
ConverterCollections.ConverterMapEvent.ConverterMapEventBinaryEntry, ConverterCollections.ConverterMapEvent.ConverterMapEventEntry
-
Nested classes/interfaces inherited from class com.tangosol.net.cache.CacheEvent
CacheEvent.TransformationState
-
-
Field Summary
-
Fields inherited from class com.tangosol.util.ConverterCollections.ConverterMapEvent
m_context, m_convKey, m_convVal, m_entryNew, m_entryOld, m_event, NO_VALUE
-
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 ConverterCacheEvent(ObservableMap<K,V> map, CacheEvent<K,V> event, Converter<K,K> convKey, Converter<V,V> convVal)
Constructor.ConverterCacheEvent(ObservableMap<K,V> map, CacheEvent<K,V> event, Converter<K,K> convKey, Converter<V,V> convVal, BackingMapManagerContext context)
Construct a ConverterMapEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheEvent<K,V>
getCacheEvent()
Return the underlying CacheEvent.-
Methods inherited from class com.tangosol.util.ConverterCollections.ConverterMapEvent
clearConverted, getContext, getConverterKeyUp, getConverterValueUp, getKey, getMapEvent, getNewEntry, getNewValue, getOldEntry, getOldValue, getPartition, getVersion, isKeyConverted, isNewValueConverted, isOldValueConverted, isVersionUpdate, setKey, setNewValue, setOldValue
-
Methods inherited from class com.tangosol.net.cache.CacheEvent
getDescription, getTransformationState, isExpired, isPriming, isSynthetic, shouldDispatch, with
-
Methods inherited from class com.tangosol.util.MapEvent
dispatch, dispatch, dispatch, getDescription, getId, getMap, isDelete, isInsert, isUpdate, readExternal, toString, writeExternal
-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Constructor Detail
-
ConverterCacheEvent
public ConverterCacheEvent(ObservableMap<K,V> map, CacheEvent<K,V> event, Converter<K,K> convKey, Converter<V,V> convVal)
Constructor.- Parameters:
event
- the underlying CacheEventmap
- the new event's sourceconvKey
- the Converter to view the underlying CacheEvent's keyconvVal
- the Converter to view the underlying CacheEvent's values
-
ConverterCacheEvent
public ConverterCacheEvent(ObservableMap<K,V> map, CacheEvent<K,V> event, Converter<K,K> convKey, Converter<V,V> convVal, BackingMapManagerContext context)
Construct a ConverterMapEvent.- Parameters:
event
- the underlying MapEventmap
- the new event's sourceconvKey
- the Converter to view the underlying CacheEvent's keyconvVal
- the Converter to view the underlying CacheEvent's valuescontext
- the BackingMapManagerContext necessary to emulate the BinaryEntry interface
-
-
Method Detail
-
getCacheEvent
public CacheEvent<K,V> getCacheEvent()
Return the underlying CacheEvent.- Returns:
- the underlying CacheEvent
-
-