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 boolean
hasListener(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Returns whether there is at least one listener registered for the given annotationjava.util.concurrent.CompletionStage<java.lang.Void>
notifyCacheStarted(java.lang.String cacheName)
java.util.concurrent.CompletionStage<java.lang.Void>
notifyCacheStopped(java.lang.String cacheName)
java.util.concurrent.CompletionStage<java.lang.Void>
notifyMerge(java.util.List<Address> members, java.util.List<Address> oldMembers, Address myAddress, int viewId, java.util.List<java.util.List<Address>> subgroupsMerged)
java.util.concurrent.CompletionStage<java.lang.Void>
notifyViewChange(java.util.List<Address> members, java.util.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
java.util.concurrent.CompletionStage<java.lang.Void> notifyViewChange(java.util.List<Address> members, java.util.List<Address> oldMembers, Address myAddress, int viewId)
Notifies all registered listeners of a viewChange event. Note that viewChange notifications are ALWAYS sent immediately.
-
notifyCacheStarted
java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheStarted(java.lang.String cacheName)
-
notifyCacheStopped
java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheStopped(java.lang.String cacheName)
-
notifyMerge
java.util.concurrent.CompletionStage<java.lang.Void> notifyMerge(java.util.List<Address> members, java.util.List<Address> oldMembers, Address myAddress, int viewId, java.util.List<java.util.List<Address>> subgroupsMerged)
-
hasListener
boolean hasListener(java.lang.Class<? extends java.lang.annotation.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
-
-