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 Details

    • 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)
    • 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 CompletionStage which completes when the notification has been sent.
    • 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
    • notifyCrossSiteViewChanged

      CompletionStage<Void> notifyCrossSiteViewChanged(Collection<String> siteView, Collection<String> sitesUp, Collection<String> sitesDown)
      Notifies all registered listeners of a sites view change event