public interface CacheNotifier extends ClassLoaderAwareFilteringListenable, ClassLoaderAwareListenable
Modifier and Type | Method and Description |
---|---|
void |
notifyCacheEntriesEvicted(Collection<InternalCacheEntry> entries,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a CacheEntriesEvicted event.
|
void |
notifyCacheEntryActivated(Object key,
Object value,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a CacheEntryActivated event.
|
void |
notifyCacheEntryCreated(Object key,
Object value,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a CacheEntryCreated event.
|
void |
notifyCacheEntryEvicted(Object key,
Object value,
InvocationContext ctx,
FlagAffectedCommand command)
Syntactic sugar
|
void |
notifyCacheEntryInvalidated(Object key,
Object value,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a CacheEntryInvalidated event.
|
void |
notifyCacheEntryLoaded(Object key,
Object value,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a CacheEntryLoaded event.
|
void |
notifyCacheEntryModified(Object key,
Object value,
boolean created,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a CacheEntryModified event.
|
void |
notifyCacheEntryPassivated(Object key,
Object value,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a CacheEntryPassivated event.
|
void |
notifyCacheEntryRemoved(Object key,
Object value,
Object oldValue,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a CacheEntryRemoved event.
|
void |
notifyCacheEntryVisited(Object key,
Object value,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a CacheEntryVisited event.
|
void |
notifyDataRehashed(ConsistentHash oldCH,
ConsistentHash newCH,
int newTopologyId,
boolean pre) |
void |
notifyTopologyChanged(ConsistentHash oldConsistentHash,
ConsistentHash newConsistentHash,
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,
InvocationContext ctx)
Notifies all registered listeners of a transaction registration event.
|
addListener
addListener
addListener, getListeners, removeListener
addListener
void notifyCacheEntryCreated(Object key, Object value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
void notifyCacheEntryModified(Object key, Object value, boolean created, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
void notifyCacheEntryRemoved(Object key, Object value, Object oldValue, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
void notifyCacheEntryVisited(Object key, Object value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
void notifyCacheEntriesEvicted(Collection<InternalCacheEntry> entries, InvocationContext ctx, FlagAffectedCommand command)
void notifyCacheEntryEvicted(Object key, Object value, InvocationContext ctx, FlagAffectedCommand command)
key
- key evictedvalue
- value evictedctx
- contextvoid notifyCacheEntryInvalidated(Object key, Object value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
void notifyCacheEntryLoaded(Object key, Object value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
void notifyCacheEntryActivated(Object key, Object value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
void notifyCacheEntryPassivated(Object key, Object value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
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, InvocationContext ctx)
globalTransaction
- void notifyDataRehashed(ConsistentHash oldCH, ConsistentHash newCH, int newTopologyId, boolean pre)
void notifyTopologyChanged(ConsistentHash oldConsistentHash, ConsistentHash newConsistentHash, int newTopologyId, boolean pre)
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.