Interface CacheNotifier<K,V>
-
- All Superinterfaces:
ClassLoaderAwareFilteringListenable<K,V>,ClassLoaderAwareListenable,DataConversionAwareListenable<K,V>,FilteringListenable<K,V>,Listenable
- All Known Subinterfaces:
ClusterCacheNotifier<K,V>
- All Known Implementing Classes:
CacheNotifierImpl
public interface CacheNotifier<K,V> extends DataConversionAwareListenable<K,V>, ClassLoaderAwareListenable
Public interface with all allowed notifications.- Since:
- 4.0
- Author:
- Mircea.Markus@jboss.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidnotifyCacheEntriesEvicted(java.util.Collection<InternalCacheEntry<? extends K,? extends V>> entries, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntriesEvictedEventevent.voidnotifyCacheEntryActivated(K key, V value, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntryActivatedEventevent.voidnotifyCacheEntryCreated(K key, V value, Metadata metadata, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntryCreatedEventevent.voidnotifyCacheEntryExpired(K key, V value, Metadata metadata, InvocationContext ctx)Notifies all registered listeners of a CacheEntryExpired event.voidnotifyCacheEntryInvalidated(K key, V value, Metadata metadata, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntryInvalidatedEventevent.voidnotifyCacheEntryLoaded(K key, V value, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntryLoadedEventevent.voidnotifyCacheEntryModified(K key, V value, Metadata metadata, V previousValue, Metadata previousMetadata, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntryModifiedEventevent.voidnotifyCacheEntryPassivated(K key, V value, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntryPassivatedEventevent.voidnotifyCacheEntryRemoved(K key, V previousValue, Metadata previousMetadata, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntryRemovedEventevent.voidnotifyCacheEntryVisited(K key, V value, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntryVisitedEventevent.voidnotifyDataRehashed(ConsistentHash oldCH, ConsistentHash newCH, ConsistentHash unionCH, int newTopologyId, boolean pre)voidnotifyPartitionStatusChanged(AvailabilityMode mode, boolean pre)voidnotifyPersistenceAvailabilityChanged(boolean available)voidnotifyTopologyChanged(CacheTopology oldTopology, CacheTopology newTopology, int newTopologyId, boolean pre)voidnotifyTransactionCompleted(GlobalTransaction transaction, boolean successful, InvocationContext ctx)Notifies all registered listeners of a transaction completion event.voidnotifyTransactionRegistered(GlobalTransaction globalTransaction, boolean isOriginLocal)Notifies all registered listeners of a transaction registration event.-
Methods inherited from interface org.infinispan.notifications.ClassLoaderAwareFilteringListenable
addListener, addListener
-
Methods inherited from interface org.infinispan.notifications.ClassLoaderAwareListenable
addListener
-
Methods inherited from interface org.infinispan.notifications.DataConversionAwareListenable
addFilteredListener, addListener, addListener
-
Methods inherited from interface org.infinispan.notifications.FilteringListenable
addFilteredListener, addListener, addListener, addStorageFormatFilteredListener
-
Methods inherited from interface org.infinispan.notifications.Listenable
addListener, getListeners, removeListener
-
-
-
-
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 aCacheEntryCreatedEventevent.
-
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 aCacheEntryModifiedEventevent.
-
notifyCacheEntryRemoved
void notifyCacheEntryRemoved(K key, V previousValue, Metadata previousMetadata, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)
Notifies all registered listeners of aCacheEntryRemovedEventevent.
-
notifyCacheEntryVisited
void notifyCacheEntryVisited(K key, V value, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)
Notifies all registered listeners of aCacheEntryVisitedEventevent.
-
notifyCacheEntriesEvicted
void notifyCacheEntriesEvicted(java.util.Collection<InternalCacheEntry<? extends K,? extends V>> entries, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)
Notifies all registered listeners of aCacheEntriesEvictedEventevent.
-
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 aCacheEntryInvalidatedEventevent.
-
notifyCacheEntryLoaded
void notifyCacheEntryLoaded(K key, V value, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)
Notifies all registered listeners of aCacheEntryLoadedEventevent.
-
notifyCacheEntryActivated
void notifyCacheEntryActivated(K key, V value, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)
Notifies all registered listeners of aCacheEntryActivatedEventevent.
-
notifyCacheEntryPassivated
void notifyCacheEntryPassivated(K key, V value, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)
Notifies all registered listeners of aCacheEntryPassivatedEventevent.
-
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 completedsuccessful- 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-
-
notifyDataRehashed
void notifyDataRehashed(ConsistentHash oldCH, ConsistentHash newCH, ConsistentHash unionCH, int newTopologyId, boolean pre)
-
notifyTopologyChanged
void notifyTopologyChanged(CacheTopology oldTopology, CacheTopology newTopology, int newTopologyId, boolean pre)
-
notifyPartitionStatusChanged
void notifyPartitionStatusChanged(AvailabilityMode mode, boolean pre)
-
notifyPersistenceAvailabilityChanged
void notifyPersistenceAvailabilityChanged(boolean available)
-
-