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