Interface CacheNotifier<K,​V>

    • Method Detail

      • notifyCacheEntryCreated

        java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryCreated​(K key,
                                                                                     V value,
                                                                                     Metadata metadata,
                                                                                     boolean pre,
                                                                                     InvocationContext ctx,
                                                                                     org.infinispan.commands.FlagAffectedCommand command)
        Notifies all registered listeners of a CacheEntryCreatedEvent event.
      • notifyCacheEntryModified

        java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryModified​(K key,
                                                                                      V value,
                                                                                      Metadata metadata,
                                                                                      V previousValue,
                                                                                      Metadata previousMetadata,
                                                                                      boolean pre,
                                                                                      InvocationContext ctx,
                                                                                      org.infinispan.commands.FlagAffectedCommand command)
        Notifies all registered listeners of a CacheEntryModifiedEvent event.
      • notifyCacheEntryRemoved

        java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryRemoved​(K key,
                                                                                     V previousValue,
                                                                                     Metadata previousMetadata,
                                                                                     boolean pre,
                                                                                     InvocationContext ctx,
                                                                                     org.infinispan.commands.FlagAffectedCommand command)
        Notifies all registered listeners of a CacheEntryRemovedEvent event.
      • notifyCacheEntryVisited

        java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryVisited​(K key,
                                                                                     V value,
                                                                                     boolean pre,
                                                                                     InvocationContext ctx,
                                                                                     org.infinispan.commands.FlagAffectedCommand command)
        Notifies all registered listeners of a CacheEntryVisitedEvent event.
      • notifyCacheEntriesEvicted

        java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntriesEvicted​(java.util.Collection<java.util.Map.Entry<K,​V>> entries,
                                                                                       InvocationContext ctx,
                                                                                       org.infinispan.commands.FlagAffectedCommand command)
        Notifies all registered listeners of a CacheEntriesEvictedEvent event.
      • notifyCacheEntryExpired

        java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryExpired​(K key,
                                                                                     V value,
                                                                                     Metadata metadata,
                                                                                     InvocationContext ctx)
        Notifies all registered listeners of a CacheEntryExpired event.
      • notifyCacheEntryInvalidated

        java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryInvalidated​(K key,
                                                                                         V value,
                                                                                         Metadata metadata,
                                                                                         boolean pre,
                                                                                         InvocationContext ctx,
                                                                                         org.infinispan.commands.FlagAffectedCommand command)
        Notifies all registered listeners of a CacheEntryInvalidatedEvent event.
      • notifyCacheEntryLoaded

        java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryLoaded​(K key,
                                                                                    V value,
                                                                                    boolean pre,
                                                                                    InvocationContext ctx,
                                                                                    org.infinispan.commands.FlagAffectedCommand command)
        Notifies all registered listeners of a CacheEntryLoadedEvent event.
      • notifyCacheEntryActivated

        java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryActivated​(K key,
                                                                                       V value,
                                                                                       boolean pre,
                                                                                       InvocationContext ctx,
                                                                                       org.infinispan.commands.FlagAffectedCommand command)
        Notifies all registered listeners of a CacheEntryActivatedEvent event.
      • notifyCacheEntryPassivated

        java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryPassivated​(K key,
                                                                                        V value,
                                                                                        boolean pre,
                                                                                        InvocationContext ctx,
                                                                                        org.infinispan.commands.FlagAffectedCommand command)
        Notifies all registered listeners of a CacheEntryPassivatedEvent event.
      • notifyTransactionCompleted

        java.util.concurrent.CompletionStage<java.lang.Void> notifyTransactionCompleted​(GlobalTransaction transaction,
                                                                                        boolean successful,
                                                                                        InvocationContext ctx)
        Notifies all registered listeners of a transaction completion event.
        Parameters:
        transaction - the transaction that has just completed
        successful - if true, the transaction committed. If false, this is a rollback event
      • notifyTransactionRegistered

        java.util.concurrent.CompletionStage<java.lang.Void> notifyTransactionRegistered​(GlobalTransaction globalTransaction,
                                                                                         boolean isOriginLocal)
        Notifies all registered listeners of a transaction registration event.
        Parameters:
        globalTransaction -
      • notifyTopologyChanged

        java.util.concurrent.CompletionStage<java.lang.Void> notifyTopologyChanged​(CacheTopology oldTopology,
                                                                                   CacheTopology newTopology,
                                                                                   int newTopologyId,
                                                                                   boolean pre)
      • notifyPartitionStatusChanged

        java.util.concurrent.CompletionStage<java.lang.Void> notifyPartitionStatusChanged​(AvailabilityMode mode,
                                                                                          boolean pre)
      • notifyPersistenceAvailabilityChanged

        java.util.concurrent.CompletionStage<java.lang.Void> notifyPersistenceAvailabilityChanged​(boolean available)
      • hasListener

        boolean hasListener​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
        Returns whether there is at least one listener regitstered for the given annotation
        Parameters:
        annotationClass - annotation to test for
        Returns:
        true if there is a listener mapped to the annotation, otherwise false