#include <coherence/util/MapListenerSupport.hpp>
Inherits CacheEvent.
Public Types | |
typedef spec::Handle | Handle |
FilterEvent Handle definition. | |
typedef spec::View | View |
FilterEvent View definition. | |
typedef spec::Holder | Holder |
FilterEvent Holder definition. | |
Public Member Functions | |
virtual ObjectArray::View | getFilter () const |
Return an array of filters that are the cause of this event. | |
virtual void | setEvent (MapEvent::View vEvent) |
Set the event that this FilterEvent wraps. | |
virtual String::View | getDescription () const |
Return a human-readable description of the state of this class in the form of a delimited list of name-value pairs.
The default implementation returns an empty string | |
virtual Object::View | getKey () const |
Return a key associated with this event.
| |
virtual Object::View | getOldValue () const |
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.
| |
virtual Object::View | getNewValue () const |
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.
| |
virtual bool | containsFilter (Filter::View vFilter) const |
Determine if this filter event contains a specified filter. | |
Protected Member Functions | |
FilterEvent (ObservableMap::Handle hMap, int32_t nId, Object::View vKey, Object::View vValueOld, Object::View vValueNew, bool fSynthetic, ObjectArray::View vaFilters) | |
Create a new FilterEvent with no old and new values. | |
FilterEvent (ObservableMap::Handle hMap, int32_t nId, Object::View vKey, Object::View vValueOld, Object::View vValueNew, bool fSynthetic, TransformationState nTransformState, ObjectArray::View vaFilters) | |
Create a new FilterEvent with no old and new values. | |
Protected Attributes | |
FinalView< ObjectArray > | f_vaFilters |
Filters which caused the event. | |
FinalView< MapEvent > | f_vEvent |
Optional wrapped MapEvent. |
FilterEvent | ( | ObservableMap::Handle | hMap, | |
int32_t | nId, | |||
Object::View | vKey, | |||
Object::View | vValueOld, | |||
Object::View | vValueNew, | |||
bool | fSynthetic, | |||
ObjectArray::View | vaFilters | |||
) | [protected] |
Create a new FilterEvent with no old and new values.
hMap | the map on which the Event initially occurred | |
nId | the events id (entry_inserted | entry_updated | entry_deleted) | |
vKey | the key into the map | |
fSynthetic | true iff the event is caused by internal cache processing such as eviction or loading | |
vaFilters | an array of Filters that caused this event. |
FilterEvent | ( | ObservableMap::Handle | hMap, | |
int32_t | nId, | |||
Object::View | vKey, | |||
Object::View | vValueOld, | |||
Object::View | vValueNew, | |||
bool | fSynthetic, | |||
TransformationState | nTransformState, | |||
ObjectArray::View | vaFilters | |||
) | [protected] |
Create a new FilterEvent with no old and new values.
hMap | the map on which the Event initially occurred | |
nId | the events id (entry_inserted | entry_updated | entry_deleted) | |
vKey | the key into the map | |
fSynthetic | true iff the event is caused by internal cache processing such as eviction or loading | |
nTransformState | the state describing how this event has been or should be transformed | |
vaFilters | an array of Filters that caused this event. |
virtual ObjectArray::View getFilter | ( | ) | const [virtual] |
Return an array of filters that are the cause of this event.
virtual void setEvent | ( | MapEvent::View | vEvent | ) | [virtual] |
Set the event that this FilterEvent wraps.
vEvent | the wrapped event |
virtual bool containsFilter | ( | Filter::View | vFilter | ) | const [virtual] |