Hazelcast C++ Client
 All Classes Functions Variables Enumerations Pages
Public Member Functions | List of all members
hazelcast::client::EntryListener< K, V > Class Template Referenceabstract

Map Entry listener to get notified when a map entry is added, removed, updated or evicted. More...

#include <EntryListener.h>

+ Inheritance diagram for hazelcast::client::EntryListener< K, V >:

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...
 

Detailed Description

template<typename K, typename V>
class hazelcast::client::EntryListener< K, V >

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.

Parameters
<K>key of the map entry
<V>value of the map entry.
See Also
IMap::addEntryListener(EntryListener, boolean)

Member Function Documentation

template<typename K, typename V>
virtual void hazelcast::client::EntryListener< K, V >::entryAdded ( const EntryEvent< K, V > &  event)
pure virtual

Invoked when an entry is added.

Parameters
evententry event

Implemented in hazelcast::client::EntryAdapter< K, V >.

template<typename K, typename V>
virtual void hazelcast::client::EntryListener< K, V >::entryEvicted ( const EntryEvent< K, V > &  event)
pure virtual

Invoked when an entry is evicted.

Parameters
evententry event

Implemented in hazelcast::client::EntryAdapter< K, V >.

template<typename K, typename V>
virtual void hazelcast::client::EntryListener< K, V >::entryExpired ( const EntryEvent< K, V > &  event)
pure virtual

Invoked upon expiration of an entry.

Parameters
eventthe event invoked when an entry is expired.

Implemented in hazelcast::client::EntryAdapter< K, V >.

template<typename K, typename V>
virtual void hazelcast::client::EntryListener< K, V >::entryMerged ( const EntryEvent< K, V > &  event)
pure virtual

Invoked after WAN replicated entry is merged.

Parameters
eventthe event invoked when an entry is expired.

Implemented in hazelcast::client::EntryAdapter< K, V >.

template<typename K, typename V>
virtual void hazelcast::client::EntryListener< K, V >::entryRemoved ( const EntryEvent< K, V > &  event)
pure virtual

Invoked when an entry is removed.

Parameters
evententry event

Implemented in hazelcast::client::EntryAdapter< K, V >.

template<typename K, typename V>
virtual void hazelcast::client::EntryListener< K, V >::entryUpdated ( const EntryEvent< K, V > &  event)
pure virtual

Invoked when an entry is removed.

Parameters
evententry event

Implemented in hazelcast::client::EntryAdapter< K, V >.

template<typename K, typename V>
virtual void hazelcast::client::EntryListener< K, V >::mapCleared ( const MapEvent event)
pure virtual

Invoked when all entries are removed by IMap#clear().

}

Implemented in hazelcast::client::EntryAdapter< K, V >.

template<typename K, typename V>
virtual void hazelcast::client::EntryListener< K, V >::mapEvicted ( const MapEvent event)
pure virtual

Invoked when all entries evicted by IMap#evictAll().

Parameters
eventmap event

Implemented in hazelcast::client::EntryAdapter< K, V >.


The documentation for this class was generated from the following file: