Inherited by ConverterCollections::ConverterCacheEvent, and MapListenerSupport::FilterEvent.
List of all members.
Consider a client code calling a remove() method for a cache. Quite naturally it causes a corresponding ENTRY_DELETED event. However, the same event could be as well caused by the client code calling put() forcing an entry eviction. Alternatively, the put() method called by client code naturally causes either ENTRY_INSERTED or ENTRY_UPDATED event. However, the same event could be as well caused by a client call to a get() method that in turn forces an entry insertion by a cache loader.
|CacheEvent Handle definition. |
|CacheEvent View definition. |
|CacheEvent Holder definition. |
Public Member Functions
|virtual bool||isSynthetic () const|
|Return true iff this event is caused by internal cache processing such as eviction or loading. |
|virtual void||outputDescription (std::ostream &out) const|
|Output a human-readable description of the state of this class in the form of a delimited list of name-value pairs.|
Generally it is also advisable to start with a call to super::outputDescription(out)
The default implementation does not output anything to the stream.
Protected Member Functions
|CacheEvent (ObservableMap::Handle hMap, int32_t nId, Object::View voKey, Object::View voValueOld, Object::View voValueNew, bool fSynthetic)|
|Create a new CacheEvent. |
|Event cause flag. |
Create a new CacheEvent.
|hMap||the map on which the Event initially occurred|
|nId||the events id (ENTRY_INSERTED | ENTRY_UPDATED | ENTRY_DELETED)|
|voKey||the key into the map|
|voValueOld||the old value (for update and delete events)|
|voValueNew||the new value (for insert and update events)|
|fSynthetic||true iff the event is caused by internal cache processing such as eviction or loading|
|virtual bool isSynthetic||(||)|| const