Interface CacheNotifier<K,​V>

    • Method Detail

      • notifyCacheEntryCreated

        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

        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

        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

        void notifyCacheEntryVisited​(K key,
                                     V value,
                                     boolean pre,
                                     InvocationContext ctx,
                                     org.infinispan.commands.FlagAffectedCommand command)
        Notifies all registered listeners of a CacheEntryVisitedEvent event.
      • notifyCacheEntryExpired

        void notifyCacheEntryExpired​(K key,
                                     V value,
                                     Metadata metadata,
                                     InvocationContext ctx)
        Notifies all registered listeners of a CacheEntryExpired event.
      • notifyCacheEntryInvalidated

        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

        void notifyCacheEntryLoaded​(K key,
                                    V value,
                                    boolean pre,
                                    InvocationContext ctx,
                                    org.infinispan.commands.FlagAffectedCommand command)
        Notifies all registered listeners of a CacheEntryLoadedEvent event.
      • notifyCacheEntryActivated

        void notifyCacheEntryActivated​(K key,
                                       V value,
                                       boolean pre,
                                       InvocationContext ctx,
                                       org.infinispan.commands.FlagAffectedCommand command)
        Notifies all registered listeners of a CacheEntryActivatedEvent event.
      • notifyCacheEntryPassivated

        void notifyCacheEntryPassivated​(K key,
                                        V value,
                                        boolean pre,
                                        InvocationContext ctx,
                                        org.infinispan.commands.FlagAffectedCommand command)
        Notifies all registered listeners of a CacheEntryPassivatedEvent event.
      • notifyTransactionCompleted

        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

        void notifyTransactionRegistered​(GlobalTransaction globalTransaction,
                                         boolean isOriginLocal)
        Notifies all registered listeners of a transaction registration event.
        Parameters:
        globalTransaction -
      • notifyTopologyChanged

        void notifyTopologyChanged​(CacheTopology oldTopology,
                                   CacheTopology newTopology,
                                   int newTopologyId,
                                   boolean pre)
      • notifyPartitionStatusChanged

        void notifyPartitionStatusChanged​(AvailabilityMode mode,
                                          boolean pre)
      • notifyPersistenceAvailabilityChanged

        void notifyPersistenceAvailabilityChanged​(boolean available)