public interface NotificationService
Modifier and Type | Method | Description |
---|---|---|
void |
addCacheClearedListener(CacheClearedListener listener) |
Registers event for notifying applications when the cache is cleared.
|
void |
addCacheConnectivityChangedListener(CacheClientConnectivityChangedListener listener) |
Registers event for notifying the application about the status of cache client connectivity.
|
void |
addCacheStatusEventListener(CacheStatusEventListener cacheStatusEventListener,
java.util.EnumSet<CacheStatusNotificationType> statusNotificationTypes) |
Registers event for notifying applications when a node joins/lefts the cache or when cache is stopped.
|
void |
removeCacheClearedListener(CacheClearedListener listener) |
Unregisters event for notifying applications when the cache is cleared.
|
void |
removeCacheConnectivityChangedListener(CacheClientConnectivityChangedListener listener) |
Unregisters event for notifying the application about the status of cache client connectivity.
|
void |
removeCacheStatusEventListener(CacheStatusEventListener cacheStatusEventListener,
java.util.EnumSet<CacheStatusNotificationType> statusNotificationTypes) |
Unregisters event for notifying applications when a node joins/lefts the cache or when cache is stopped.
|
void addCacheConnectivityChangedListener(CacheClientConnectivityChangedListener listener) throws CacheException, java.lang.IllegalArgumentException
listener
- The listener that is invoked when client connectivity status changes.CacheException
java.lang.IllegalArgumentException
void removeCacheConnectivityChangedListener(CacheClientConnectivityChangedListener listener) throws CacheException, java.lang.IllegalArgumentException
listener
- The listener that was registered with client connectivity changed event.CacheException
java.lang.IllegalArgumentException
void addCacheClearedListener(CacheClearedListener listener) throws CacheException, java.lang.IllegalArgumentException
listener
- The listener that is invoked whenever the cache is cleared.CacheException
java.lang.IllegalArgumentException
void removeCacheClearedListener(CacheClearedListener listener) throws CacheException, java.lang.IllegalArgumentException
listener
- The listener that is registered with the cache cleared event.CacheException
java.lang.IllegalArgumentException
void addCacheStatusEventListener(CacheStatusEventListener cacheStatusEventListener, java.util.EnumSet<CacheStatusNotificationType> statusNotificationTypes) throws CacheException, java.lang.IllegalArgumentException
cacheStatusEventListener
- The listener that is invoded whenever cache status changes.statusNotificationTypes
- The enumset that specifies the events that listener is registered with.CacheException
java.lang.IllegalArgumentException
void removeCacheStatusEventListener(CacheStatusEventListener cacheStatusEventListener, java.util.EnumSet<CacheStatusNotificationType> statusNotificationTypes) throws CacheException, java.lang.IllegalArgumentException
cacheStatusEventListener
- The listener that was registered with cache status event.statusNotificationTypes
- The enumset that specifies the events that listener is unregistered with.CacheException
java.lang.IllegalArgumentException