public final class CacheNotifierImpl extends AbstractListenerImpl implements CacheNotifier, ClassLoaderAwareListenable
AbstractListenerImpl.ListenerInvocation
asyncProcessor, 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(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, getListenerCollectionForAnnotation, getListeners, removeListener, start, testListenerClassValidity, testListenerMethodValidity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener
addListener, getListeners, removeListener
protected Log getLog()
getLog
in class AbstractListenerImpl
protected Map<Class<? extends Annotation>,Class<?>> getAllowedMethodAnnotations()
getAllowedMethodAnnotations
in class AbstractListenerImpl
public void notifyCacheEntryCreated(Object key, boolean pre, InvocationContext ctx)
CacheNotifier
notifyCacheEntryCreated
in interface CacheNotifier
public void notifyCacheEntryModified(Object key, Object value, boolean pre, InvocationContext ctx)
CacheNotifier
notifyCacheEntryModified
in interface CacheNotifier
public void notifyCacheEntryRemoved(Object key, Object value, boolean pre, InvocationContext ctx)
CacheNotifier
notifyCacheEntryRemoved
in interface CacheNotifier
public void notifyCacheEntryVisited(Object key, Object value, boolean pre, InvocationContext ctx)
CacheNotifier
notifyCacheEntryVisited
in interface CacheNotifier
public void notifyCacheEntriesEvicted(Collection<InternalCacheEntry> entries, InvocationContext ctx)
CacheNotifier
notifyCacheEntriesEvicted
in interface CacheNotifier
public void notifyCacheEntryEvicted(Object key, Object value, InvocationContext ctx)
CacheNotifier
notifyCacheEntryEvicted
in interface CacheNotifier
key
- key evictedvalue
- value evictedctx
- contextpublic void notifyCacheEntryInvalidated(Object key, Object value, boolean pre, InvocationContext ctx)
CacheNotifier
notifyCacheEntryInvalidated
in interface CacheNotifier
public void notifyCacheEntryLoaded(Object key, Object value, boolean pre, InvocationContext ctx)
CacheNotifier
notifyCacheEntryLoaded
in interface CacheNotifier
public void notifyCacheEntryActivated(Object key, Object value, boolean pre, InvocationContext ctx)
CacheNotifier
notifyCacheEntryActivated
in interface CacheNotifier
public void notifyCacheEntryPassivated(Object key, Object value, boolean pre, InvocationContext ctx)
CacheNotifier
notifyCacheEntryPassivated
in interface CacheNotifier
public void notifyTransactionCompleted(GlobalTransaction transaction, boolean successful, InvocationContext ctx)
CacheNotifier
notifyTransactionCompleted
in interface CacheNotifier
transaction
- the transaction that has just completedsuccessful
- if true, the transaction committed. If false, this is a rollback eventpublic void notifyTransactionRegistered(GlobalTransaction globalTransaction, InvocationContext ctx)
CacheNotifier
notifyTransactionRegistered
in interface CacheNotifier
public void notifyDataRehashed(ConsistentHash oldCH, ConsistentHash newCH, int newTopologyId, boolean pre)
notifyDataRehashed
in interface CacheNotifier
public void notifyTopologyChanged(ConsistentHash oldConsistentHash, ConsistentHash newConsistentHash, int newTopologyId, boolean pre)
notifyTopologyChanged
in interface CacheNotifier
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.