public final class CacheNotifierImpl extends AbstractListenerImpl implements CacheNotifier
AbstractListenerImpl.ListenerInvocationasyncProcessor, listenersMap, syncProcessor| Constructor and Description |
|---|
CacheNotifierImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<Class<? extends Annotation>,Class> |
getAllowedMethodAnnotations() |
protected Log |
getLog() |
void |
notifyCacheEntriesEvicted(Collection<InternalCacheEntry> entries,
InvocationContext ctx)
Notifies all registered listeners of a CacheEntriesEvicted event.
|
void |
notifyCacheEntryActivated(Object key,
Object value,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a CacheEntryActivated event.
|
void |
notifyCacheEntryCreated(Object key,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a CacheEntryCreated event.
|
void |
notifyCacheEntryEvicted(Object key,
Object value,
InvocationContext ctx)
Syntactic sugar
|
void |
notifyCacheEntryInvalidated(Object key,
Object value,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a CacheEntryInvalidated event.
|
void |
notifyCacheEntryLoaded(Object key,
Object value,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a CacheEntryLoaded event.
|
void |
notifyCacheEntryModified(Object key,
Object value,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a CacheEntryModified event.
|
void |
notifyCacheEntryPassivated(Object key,
Object value,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a CacheEntryPassivated event.
|
void |
notifyCacheEntryRemoved(Object key,
Object value,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a CacheEntryRemoved event.
|
void |
notifyCacheEntryVisited(Object key,
Object value,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a CacheEntryVisited event.
|
void |
notifyDataRehashed(Collection<Address> oldView,
Collection<Address> newView,
long newViewId,
boolean pre) |
void |
notifyTopologyChanged(ConsistentHash oldConsistentHash,
ConsistentHash newConsistentHash,
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, getListenerCollectionForAnnotation, getListeners, removeListener, start, testListenerClassValidity, testListenerMethodValidityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, getListeners, removeListenerprotected Log getLog()
getLog in class AbstractListenerImplprotected Map<Class<? extends Annotation>,Class> getAllowedMethodAnnotations()
getAllowedMethodAnnotations in class AbstractListenerImplpublic void notifyCacheEntryCreated(Object key, boolean pre, InvocationContext ctx)
CacheNotifiernotifyCacheEntryCreated in interface CacheNotifierpublic void notifyCacheEntryModified(Object key, Object value, boolean pre, InvocationContext ctx)
CacheNotifiernotifyCacheEntryModified in interface CacheNotifierpublic void notifyCacheEntryRemoved(Object key, Object value, boolean pre, InvocationContext ctx)
CacheNotifiernotifyCacheEntryRemoved in interface CacheNotifierpublic void notifyCacheEntryVisited(Object key, Object value, boolean pre, InvocationContext ctx)
CacheNotifiernotifyCacheEntryVisited in interface CacheNotifierpublic void notifyCacheEntriesEvicted(Collection<InternalCacheEntry> entries, InvocationContext ctx)
CacheNotifiernotifyCacheEntriesEvicted in interface CacheNotifierpublic void notifyCacheEntryEvicted(Object key, Object value, InvocationContext ctx)
CacheNotifiernotifyCacheEntryEvicted in interface CacheNotifierkey - key evictedvalue - value evictedctx - contextpublic void notifyCacheEntryInvalidated(Object key, Object value, boolean pre, InvocationContext ctx)
CacheNotifiernotifyCacheEntryInvalidated in interface CacheNotifierpublic void notifyCacheEntryLoaded(Object key, Object value, boolean pre, InvocationContext ctx)
CacheNotifiernotifyCacheEntryLoaded in interface CacheNotifierpublic void notifyCacheEntryActivated(Object key, Object value, boolean pre, InvocationContext ctx)
CacheNotifiernotifyCacheEntryActivated in interface CacheNotifierpublic void notifyCacheEntryPassivated(Object key, Object value, boolean pre, InvocationContext ctx)
CacheNotifiernotifyCacheEntryPassivated in interface CacheNotifierpublic void notifyTransactionCompleted(GlobalTransaction transaction, boolean successful, InvocationContext ctx)
CacheNotifiernotifyTransactionCompleted in interface CacheNotifiertransaction - the transaction that has just completedsuccessful - if true, the transaction committed. If false, this is a rollback eventpublic void notifyTransactionRegistered(GlobalTransaction globalTransaction, InvocationContext ctx)
CacheNotifiernotifyTransactionRegistered in interface CacheNotifierpublic void notifyDataRehashed(Collection<Address> oldView, Collection<Address> newView, long newViewId, boolean pre)
notifyDataRehashed in interface CacheNotifierpublic void notifyTopologyChanged(ConsistentHash oldConsistentHash, ConsistentHash newConsistentHash, boolean pre)
notifyTopologyChanged in interface CacheNotifierCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.