Interface CacheManagerNotifier

    • 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