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, CollectionEvent<V>, 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.
- Author:
- cp 2002.02.08, jh 2007.09.28
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ConverterCollections.ConverterMapEvent
ConverterCollections.ConverterMapEvent.ConverterMapEventBinaryEntry, ConverterCollections.ConverterMapEvent.ConverterMapEventEntryNested classes/interfaces inherited from class CacheEvent
CacheEvent.TransformationState -
Field Summary
Fields inherited from class ConverterCollections.ConverterMapEvent
m_context, m_convKey, m_convVal, m_entryNew, m_entryOld, m_event, NO_VALUEFields inherited from class CacheEvent
EXPIRED, m_nFlags, m_transformState, PRIMING, SYNTHETICFields inherited from class MapEvent
ENTRY_DELETED, ENTRY_INSERTED, ENTRY_UPDATED, m_key, m_nId, m_nPartition, m_nVersion, m_valueNew, m_valueOldFields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionConverterCacheEvent(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
Methods inherited from class ConverterCollections.ConverterMapEvent
clearConverted, getContext, getConverterKeyUp, getConverterValueUp, getKey, getMapEvent, getNewEntry, getNewValue, getOldEntry, getOldValue, getPartition, getVersion, isKeyConverted, isNewValueConverted, isOldValueConverted, isVersionUpdate, setKey, setNewValue, setOldValueMethods inherited from class CacheEvent
getDescription, getTransformationState, isExpired, isPriming, isSynthetic, shouldDispatch, withMethods inherited from class MapEvent
dispatch, dispatch, dispatch, getDescription, getId, getMap, isDelete, isInsert, isUpdate, readExternal, toString, writeExternalMethods inherited from class EventObject
getSource
-
Constructor Details
-
ConverterCacheEvent
public ConverterCacheEvent(ObservableMap<K, V> map, CacheEvent<K, V> event, Converter<K, K> convKey, Converter<V, V> convVal) Constructor.- Parameters:
map- the new event's sourceevent- the underlying CacheEventconvKey- 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:
map- the new event's sourceevent- the underlying MapEventconvKey- 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 Details
-
getCacheEvent
Return the underlying CacheEvent.- Returns:
- the underlying CacheEvent
-