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... | |
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.
<E> | item |
|
pure virtual |
Invoked when an item is added.
item | added item |
|
pure virtual |
Invoked when an item is removed.
item | removed item. |