public interface CacheNotifier<K,V> extends ClassLoaderAwareFilteringListenable<K,V>, ClassLoaderAwareListenable
Modifier and Type | Method and Description |
---|---|
void |
notifyCacheEntriesEvicted(Collection<InternalCacheEntry<? extends K,? extends V>> entries,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntriesEvictedEvent event. |
void |
notifyCacheEntryActivated(K key,
V value,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntryActivatedEvent event. |
void |
notifyCacheEntryCreated(K key,
V value,
Metadata metadata,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntryCreatedEvent event. |
void |
notifyCacheEntryExpired(K key,
V value,
Metadata metadata,
InvocationContext ctx)
Notifies all registered listeners of a CacheEntryExpired event.
|
void |
notifyCacheEntryInvalidated(K key,
V value,
Metadata metadata,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntryInvalidatedEvent event. |
void |
notifyCacheEntryLoaded(K key,
V value,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntryLoadedEvent event. |
void |
notifyCacheEntryModified(K key,
V value,
Metadata metadata,
V previousValue,
Metadata previousMetadata,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntryModifiedEvent event. |
void |
notifyCacheEntryPassivated(K key,
V value,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntryPassivatedEvent event. |
void |
notifyCacheEntryRemoved(K key,
V previousValue,
Metadata previousMetadata,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntryRemovedEvent event. |
void |
notifyCacheEntryVisited(K key,
V value,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntryVisitedEvent event. |
void |
notifyDataRehashed(ConsistentHash oldCH,
ConsistentHash newCH,
ConsistentHash unionCH,
int newTopologyId,
boolean pre) |
void |
notifyPartitionStatusChanged(AvailabilityMode mode,
boolean pre) |
void |
notifyTopologyChanged(CacheTopology oldTopology,
CacheTopology newTopology,
int newTopologyId,
boolean pre) |
void |
notifyTransactionCompleted(GlobalTransaction transaction,
boolean successful,
InvocationContext ctx)
Notifies all registered listeners of a transaction completion event.
|
void |
notifyTransactionRegistered(GlobalTransaction globalTransaction,
boolean isOriginLocal)
Notifies all registered listeners of a transaction registration event.
|
void |
setTypeConverter(TypeConverter typeConverter)
Set an optional converter to be used for converting the key/value of the event before notifying the listeners.
|
addListener, addListener
addListener, addListener
addListener, getListeners, removeListener
addListener
void notifyCacheEntryCreated(K key, V value, Metadata metadata, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheEntryCreatedEvent
event.void notifyCacheEntryModified(K key, V value, Metadata metadata, V previousValue, Metadata previousMetadata, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheEntryModifiedEvent
event.void notifyCacheEntryRemoved(K key, V previousValue, Metadata previousMetadata, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheEntryRemovedEvent
event.void notifyCacheEntryVisited(K key, V value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheEntryVisitedEvent
event.void notifyCacheEntriesEvicted(Collection<InternalCacheEntry<? extends K,? extends V>> entries, InvocationContext ctx, FlagAffectedCommand command)
CacheEntriesEvictedEvent
event.void notifyCacheEntryExpired(K key, V value, Metadata metadata, InvocationContext ctx)
void notifyCacheEntryInvalidated(K key, V value, Metadata metadata, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheEntryInvalidatedEvent
event.void notifyCacheEntryLoaded(K key, V value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheEntryLoadedEvent
event.void notifyCacheEntryActivated(K key, V value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheEntryActivatedEvent
event.void notifyCacheEntryPassivated(K key, V value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheEntryPassivatedEvent
event.void notifyTransactionCompleted(GlobalTransaction transaction, boolean successful, InvocationContext ctx)
transaction
- the transaction that has just completedsuccessful
- if true, the transaction committed. If false, this is a rollback eventvoid notifyTransactionRegistered(GlobalTransaction globalTransaction, boolean isOriginLocal)
globalTransaction
- void notifyDataRehashed(ConsistentHash oldCH, ConsistentHash newCH, ConsistentHash unionCH, int newTopologyId, boolean pre)
void notifyTopologyChanged(CacheTopology oldTopology, CacheTopology newTopology, int newTopologyId, boolean pre)
void notifyPartitionStatusChanged(AvailabilityMode mode, boolean pre)
void setTypeConverter(TypeConverter typeConverter)
typeConverter
- the converter instance; can be null
Copyright © 2021 JBoss, a division of Red Hat. All rights reserved.