Interface CacheManagerNotifier
- All Superinterfaces:
Listenable
- All Known Implementing Classes:
CacheManagerNotifierImpl
Notifications for the cache manager
- Since:
- 4.0
- Author:
- Manik Surtani
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasListener(Class<? extends Annotation> annotationClass) Returns whether there is at least one listener registered for the given annotationnotifyCacheStarted(String cacheName) notifyCacheStopped(String cacheName) notifyConfigurationChanged(ConfigurationChangedEvent.EventType eventType, String entityType, String entityName) Notifies all registered listeners of a configurationChange event.notifyCrossSiteViewChanged(Collection<String> siteView, Collection<String> sitesUp, Collection<String> sitesDown) Notifies all registered listeners of a sites view change eventnotifyMerge(List<Address> members, List<Address> oldMembers, Address myAddress, int viewId, List<List<Address>> subgroupsMerged) Notifies all registered listeners of a viewChange event.Methods inherited from interface Listenable
addListener, addListenerAsync, removeListener, removeListenerAsync
-
Method Details
-
notifyViewChange
-
notifyCacheStarted
-
notifyCacheStopped
-
notifyMerge
-
notifyConfigurationChanged
CompletionStage<Void> notifyConfigurationChanged(ConfigurationChangedEvent.EventType eventType, String entityType, String entityName) Notifies all registered listeners of a configurationChange event.- Parameters:
eventType- the type of event (CREATE or REMOVE)entityType- the type of configuration that has changed (e.g. cache, counter, ...)entityName- the name of the configuration item that has been changed- Returns:
- a
CompletionStagewhich completes when the notification has been sent.
-
hasListener
Returns whether there is at least one listener registered for the given annotation- Parameters:
annotationClass- annotation to test for- Returns:
- true if there is a listener mapped to the annotation, otherwise false
-
notifyCrossSiteViewChanged
CompletionStage<Void> notifyCrossSiteViewChanged(Collection<String> siteView, Collection<String> sitesUp, Collection<String> sitesDown) Notifies all registered listeners of a sites view change event
-