Hazelcast C++ Client
Public Member Functions | List of all members
hazelcast::client::ItemListener< E > Class Template Referenceabstract

Item listener for IQueue, ISet and IList. More...

#include <ItemListener.h>

Public Member Functions

virtual void itemAdded (const ItemEvent< E > &item)=0
 Invoked when an item is added. More...
 
virtual void itemRemoved (const ItemEvent< E > &item)=0
 Invoked when an item is removed. More...
 

Detailed Description

template<typename E>
class hazelcast::client::ItemListener< E >

Item listener for IQueue, ISet and IList.

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
<E>item

Member Function Documentation

◆ itemAdded()

template<typename E>
virtual void hazelcast::client::ItemListener< E >::itemAdded ( const ItemEvent< E > &  item)
pure virtual

Invoked when an item is added.

Parameters
itemadded item

◆ itemRemoved()

template<typename E>
virtual void hazelcast::client::ItemListener< E >::itemRemoved ( const ItemEvent< E > &  item)
pure virtual

Invoked when an item is removed.

Parameters
itemremoved item.

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