Map Entry listener to get notified when a map entry is added, removed, updated or evicted. More...
#include <EntryListener.h>
Public Member Functions | |
virtual void | entryAdded (const EntryEvent< K, V > &event)=0 |
Invoked when an entry is added. More... | |
virtual void | entryRemoved (const EntryEvent< K, V > &event)=0 |
Invoked when an entry is removed. More... | |
virtual void | entryUpdated (const EntryEvent< K, V > &event)=0 |
Invoked when an entry is removed. More... | |
virtual void | entryEvicted (const EntryEvent< K, V > &event)=0 |
Invoked when an entry is evicted. More... | |
virtual void | entryExpired (const EntryEvent< K, V > &event)=0 |
Invoked upon expiration of an entry. More... | |
virtual void | entryMerged (const EntryEvent< K, V > &event)=0 |
Invoked after WAN replicated entry is merged. More... | |
virtual void | mapEvicted (const MapEvent &event)=0 |
Invoked when all entries evicted by IMap#evictAll(). More... | |
virtual void | mapCleared (const MapEvent &event)=0 |
Invoked when all entries are removed by IMap#clear(). More... | |
Map Entry listener to get notified when a map entry is added, removed, updated or evicted.
Events will fire as a result of operations carried out via the IMap.
Warning 1: If listener should do a time consuming operation, off-load the operation to another thread. otherwise it will slow down the system.
Warning 2: Do not make a call to hazelcast. It can cause deadlock.
<K> | key of the map entry |
<V> | value of the map entry. |
|
pure virtual |
Invoked when an entry is added.
event | entry event |
Implemented in hazelcast::client::EntryAdapter< K, V >.
|
pure virtual |
Invoked when an entry is evicted.
event | entry event |
Implemented in hazelcast::client::EntryAdapter< K, V >.
|
pure virtual |
Invoked upon expiration of an entry.
event | the event invoked when an entry is expired. |
Implemented in hazelcast::client::EntryAdapter< K, V >.
|
pure virtual |
Invoked after WAN replicated entry is merged.
event | the event invoked when an entry is expired. |
Implemented in hazelcast::client::EntryAdapter< K, V >.
|
pure virtual |
Invoked when an entry is removed.
event | entry event |
Implemented in hazelcast::client::EntryAdapter< K, V >.
|
pure virtual |
Invoked when an entry is removed.
event | entry event |
Implemented in hazelcast::client::EntryAdapter< K, V >.
|
pure virtual |
Invoked when all entries are removed by IMap#clear().
}
Implemented in hazelcast::client::EntryAdapter< K, V >.
|
pure virtual |
Invoked when all entries evicted by IMap#evictAll().
event | map event |
Implemented in hazelcast::client::EntryAdapter< K, V >.