Package com.tangosol.util
Class MapListenerSupport.FilterEvent
java.lang.Object
java.util.EventObject
com.tangosol.util.MapEvent
com.tangosol.net.cache.CacheEvent
com.tangosol.util.MapListenerSupport.FilterEvent
- All Implemented Interfaces:
PortableObject,Serializable
- Enclosing class:
MapListenerSupport
An extension of the CacheEvent which may carry no values (old or new), but
instead holds on an array of Filter objects being the "cause" of the event.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.net.cache.CacheEvent
CacheEvent.TransformationState -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Filter[]Filters that caused the event.protected final MapEventOptional wrapped MapEvent.Fields inherited from class com.tangosol.net.cache.CacheEvent
EXPIRED, m_nFlags, m_transformState, PRIMING, SYNTHETICFields inherited from class com.tangosol.util.MapEvent
ENTRY_DELETED, ENTRY_INSERTED, ENTRY_UPDATED, m_key, m_nId, m_nPartition, m_nVersion, m_valueNew, m_valueOldFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionFilterEvent(MapEvent event, Filter[] aFilter) Constructs a new FilterEvent that wraps the given MapEvent.FilterEvent(ObservableMap map, int nId, Object oKey, boolean fSynthetic, boolean fPriming, Filter[] aFilter) Constructs a new lite (no values are specified) FilterEvent.FilterEvent(ObservableMap map, int nId, Object oKey, boolean fSynthetic, Filter[] aFilter) Constructs a new lite (no values are specified) FilterEvent.FilterEvent(ObservableMap map, int nId, Object oKey, Object oValueOld, Object oValueNew, boolean fSynthetic, boolean fPriming, Filter[] aFilter) Constructs a new FilterEvent.FilterEvent(ObservableMap map, int nId, Object oKey, Object oValueOld, Object oValueNew, boolean fSynthetic, CacheEvent.TransformationState transformState, boolean fPriming, boolean fExpired, Filter[] aFilter) Constructs a new FilterEvent.FilterEvent(ObservableMap map, int nId, Object oKey, Object oValueOld, Object oValueNew, boolean fSynthetic, CacheEvent.TransformationState transformState, boolean fPriming, Filter[] aFilter) Constructs a new FilterEvent.FilterEvent(ObservableMap map, int nId, Object oKey, Object oValueOld, Object oValueNew, boolean fSynthetic, CacheEvent.TransformationState transformState, Filter[] aFilter) Constructs a new FilterEvent. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGet the event's description.Filter[]Return an array of filters that are the cause of this event.getKey()Return a key associated with this event.Return the wrapped event.Return a new value associated with this event.Return an old value associated with this event.Methods inherited from class com.tangosol.net.cache.CacheEvent
getTransformationState, isExpired, isPriming, isSynthetic, isVersionUpdate, shouldDispatch, withMethods inherited from class com.tangosol.util.MapEvent
dispatch, dispatch, dispatch, getDescription, getId, getMap, getNewEntry, getOldEntry, getPartition, getVersion, isDelete, isInsert, isUpdate, readExternal, toString, writeExternalMethods inherited from class java.util.EventObject
getSource
-
Field Details
-
f_aFilter
Filters that caused the event. -
f_event
Optional wrapped MapEvent.
-
-
Constructor Details
-
FilterEvent
Constructs a new lite (no values are specified) FilterEvent.- Parameters:
map- the ObservableMap object that fired the eventnId- this event's idoKey- the key into the mapfSynthetic- true iff the event is caused by the cache internal processing such as eviction or loadingaFilter- an array of filters that caused this event
-
FilterEvent
public FilterEvent(ObservableMap map, int nId, Object oKey, boolean fSynthetic, boolean fPriming, Filter[] aFilter) Constructs a new lite (no values are specified) FilterEvent.- Parameters:
map- the ObservableMap object that fired the eventnId- this event's idoKey- the key into the mapfSynthetic- true iff the event is caused by the cache internal processing such as eviction or loadingfPriming- a flag indicating whether or not the event is a priming eventaFilter- an array of filters that caused this event
-
FilterEvent
public FilterEvent(ObservableMap map, int nId, Object oKey, Object oValueOld, Object oValueNew, boolean fSynthetic, boolean fPriming, Filter[] aFilter) Constructs a new FilterEvent.- Parameters:
map- the ObservableMap object that fired the eventnId- this event's idoKey- the key into the mapoValueOld- the old valueoValueNew- the new valuefSynthetic- true iff the event is caused by the cache internal processing such as eviction or loadingfPriming- a flag indicating whether or not the event is a priming eventaFilter- an array of filters that caused this event
-
FilterEvent
public FilterEvent(ObservableMap map, int nId, Object oKey, Object oValueOld, Object oValueNew, boolean fSynthetic, CacheEvent.TransformationState transformState, Filter[] aFilter) Constructs a new FilterEvent.- Parameters:
map- the ObservableMap object that fired the eventnId- this event's idoKey- the key into the mapoValueOld- the old valueoValueNew- the new valuefSynthetic- true iff the event is caused by the cache internal processing such as eviction or loadingtransformState- thestatedescribing how this event has been or should be transformedaFilter- an array of filters that caused this event
-
FilterEvent
public FilterEvent(ObservableMap map, int nId, Object oKey, Object oValueOld, Object oValueNew, boolean fSynthetic, CacheEvent.TransformationState transformState, boolean fPriming, Filter[] aFilter) Constructs a new FilterEvent.- Parameters:
map- the ObservableMap object that fired the eventnId- this event's idoKey- the key into the mapoValueOld- the old valueoValueNew- the new valuefSynthetic- true iff the event is caused by the cache internal processing such as eviction or loadingtransformState- thestatedescribing how this event has been or should be transformedfPriming- a flag indicating whether or not the event is a priming eventaFilter- an array of filters that caused this event
-
FilterEvent
public FilterEvent(ObservableMap map, int nId, Object oKey, Object oValueOld, Object oValueNew, boolean fSynthetic, CacheEvent.TransformationState transformState, boolean fPriming, boolean fExpired, Filter[] aFilter) Constructs a new FilterEvent.- Parameters:
map- the ObservableMap object that fired the eventnId- this event's idoKey- the key into the mapoValueOld- the old valueoValueNew- the new valuefSynthetic- true iff the event is caused by the cache internal processing such as eviction or loadingtransformState- thestatedescribing how this event has been or should be transformedfPriming- a flag indicating whether or not the event is a priming eventfExpired- true iff the event results from an eviction due to timeaFilter- an array of filters that caused this event- Since:
- 22.06
-
FilterEvent
Constructs a new FilterEvent that wraps the given MapEvent.- Parameters:
event- the wrapped MapEventaFilter- an array of filters that caused this event
-
-
Method Details
-
getFilter
Return an array of filters that are the cause of this event.- Returns:
- an array of filters
-
getMapEvent
Return the wrapped event.- Returns:
- the underlying
MapEvent - Since:
- 12.2.1.4
-
getDescription
Get the event's description.- Overrides:
getDescriptionin classCacheEvent- Returns:
- this event's description
-
getKey
Return a key associated with this event. -
getOldValue
Return an old value associated with this event.The old value represents a value deleted from or updated in a map. It is always null for "insert" notifications.
- Overrides:
getOldValuein classMapEvent- Returns:
- an old value
-
getNewValue
Return a new value associated with this event.The new value represents a new value inserted into or updated in a map. It is always null for "delete" notifications.
- Overrides:
getNewValuein classMapEvent- Returns:
- a new value
-