Interface Notifiable
-
- All Known Subinterfaces:
Counter
,DistributedHashSet<T>
,DistributedList<T>
,DistributedMap<K,V>
,DistributedQueue<T>
public interface Notifiable
This interface contains methods for registering and unregistering notifactions for data structures.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addChangeListener(DataStructureDataChangeListener collectionDataNotificationListener, java.util.EnumSet<EventType> eventTypes, DataTypeEventDataFilter datafilter)
Allows you to register collection event notifications like Add, Update, and Remove on the collection.void
removeChangeListener(DataStructureDataChangeListener collectionDataNotificationListener, java.util.EnumSet<EventType> eventTypes)
Allows you to unregister collection event notification.
-
-
-
Method Detail
-
addChangeListener
void addChangeListener(DataStructureDataChangeListener collectionDataNotificationListener, java.util.EnumSet<EventType> eventTypes, DataTypeEventDataFilter datafilter) throws CacheException
Allows you to register collection event notifications like Add, Update, and Remove on the collection.- Parameters:
collectionDataNotificationListener
- The listener that is invoked when an item is added, updated or removed from the cache.eventTypes
- The event type/types that are to be registered.datafilter
- An enum which allows you to specify to which extent you want the data with the event.- Throws:
CacheException
-
removeChangeListener
void removeChangeListener(DataStructureDataChangeListener collectionDataNotificationListener, java.util.EnumSet<EventType> eventTypes) throws java.lang.Exception
Allows you to unregister collection event notification.- Parameters:
collectionDataNotificationListener
- The listener that is invoked when an item is added, updated or removed from the cache.eventTypes
- The event type/types that are to be unregistered.- Throws:
java.lang.Exception
-
-