Interface CacheManagerNotifier
-
- All Superinterfaces:
Listenable
- All Known Implementing Classes:
CacheManagerNotifierImpl
public interface CacheManagerNotifier extends Listenable
Notifications for the cache manager- Since:
- 4.0
- Author:
- Manik Surtani
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasListener(Class<? extends Annotation> annotationClass)Returns whether there is at least one listener registered for the given annotationCompletionStage<Void>notifyCacheStarted(String cacheName)CompletionStage<Void>notifyCacheStopped(String cacheName)CompletionStage<Void>notifyMerge(List<Address> members, List<Address> oldMembers, Address myAddress, int viewId, List<List<Address>> subgroupsMerged)CompletionStage<Void>notifyViewChange(List<Address> members, List<Address> oldMembers, Address myAddress, int viewId)Notifies all registered listeners of a viewChange event.-
Methods inherited from interface org.infinispan.notifications.Listenable
addListener, addListenerAsync, getListeners, removeListener, removeListenerAsync
-
-
-
-
Method Detail
-
notifyViewChange
CompletionStage<Void> notifyViewChange(List<Address> members, List<Address> oldMembers, Address myAddress, int viewId)
Notifies all registered listeners of a viewChange event. Note that viewChange notifications are ALWAYS sent immediately.
-
notifyCacheStarted
CompletionStage<Void> notifyCacheStarted(String cacheName)
-
notifyCacheStopped
CompletionStage<Void> notifyCacheStopped(String cacheName)
-
notifyMerge
CompletionStage<Void> notifyMerge(List<Address> members, List<Address> oldMembers, Address myAddress, int viewId, List<List<Address>> subgroupsMerged)
-
hasListener
boolean hasListener(Class<? extends Annotation> annotationClass)
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
-
-