public final class CacheNotifierImpl extends AbstractListenerImpl implements CacheNotifier
AbstractListenerImpl.ListenerInvocationasyncProcessor, listenersMap, syncProcessor| Constructor and Description |
|---|
CacheNotifierImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Object listener,
KeyFilter filter)
Adds a listener to the component.
|
void |
addListener(Object listener,
KeyFilter filter,
ClassLoader classLoader)
Adds a listener to the component.
|
protected Map<Class<? extends Annotation>,Class<?>> |
getAllowedMethodAnnotations() |
protected Log |
getLog() |
boolean |
isNotificationAllowed(FlagAffectedCommand cmd,
List<AbstractListenerImpl.ListenerInvocation> listeners) |
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, getListenerCollectionForAnnotation, getListeners, removeListener, start, testListenerClassValidity, testListenerMethodValidity, validateAndAddListenerInvocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, getListeners, removeListeneraddListenerprotected Log getLog()
getLog in class AbstractListenerImplprotected Map<Class<? extends Annotation>,Class<?>> getAllowedMethodAnnotations()
getAllowedMethodAnnotations in class AbstractListenerImplpublic void notifyCacheEntryCreated(Object key, Object value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheNotifiernotifyCacheEntryCreated in interface CacheNotifierpublic void notifyCacheEntryModified(Object key, Object value, boolean created, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheNotifiernotifyCacheEntryModified in interface CacheNotifierpublic void notifyCacheEntryRemoved(Object key, Object value, Object oldValue, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheNotifiernotifyCacheEntryRemoved in interface CacheNotifierpublic void notifyCacheEntryVisited(Object key, Object value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheNotifiernotifyCacheEntryVisited in interface CacheNotifierpublic void notifyCacheEntriesEvicted(Collection<InternalCacheEntry> entries, InvocationContext ctx, FlagAffectedCommand command)
CacheNotifiernotifyCacheEntriesEvicted in interface CacheNotifierpublic void notifyCacheEntryEvicted(Object key, Object value, InvocationContext ctx, FlagAffectedCommand command)
CacheNotifiernotifyCacheEntryEvicted in interface CacheNotifierkey - key evictedvalue - value evictedctx - contextpublic void notifyCacheEntryInvalidated(Object key, Object value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheNotifiernotifyCacheEntryInvalidated in interface CacheNotifierpublic void notifyCacheEntryLoaded(Object key, Object value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheNotifiernotifyCacheEntryLoaded in interface CacheNotifierpublic void notifyCacheEntryActivated(Object key, Object value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheNotifiernotifyCacheEntryActivated in interface CacheNotifierpublic void notifyCacheEntryPassivated(Object key, Object value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
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(ConsistentHash oldCH, ConsistentHash newCH, int newTopologyId, boolean pre)
notifyDataRehashed in interface CacheNotifierpublic void notifyTopologyChanged(ConsistentHash oldConsistentHash, ConsistentHash newConsistentHash, int newTopologyId, boolean pre)
notifyTopologyChanged in interface CacheNotifierpublic boolean isNotificationAllowed(FlagAffectedCommand cmd, List<AbstractListenerImpl.ListenerInvocation> listeners)
public void addListener(Object listener, KeyFilter filter, ClassLoader classLoader)
ClassLoaderAwareFilteringListenableListener and
further to that, contain methods annotated appropriately, otherwise the listener will not be registered.
See the Listener annotation for more information.
addListener in interface ClassLoaderAwareFilteringListenablelistener - must not be null.classLoader - class loaderpublic void addListener(Object listener, KeyFilter filter)
FilteringListenableListener and
further to that, contain methods annotated appropriately, otherwise the listener will not be registered.
See the Listener annotation for more information.
addListener in interface FilteringListenablelistener - must not be null.Copyright © 2013 JBoss, a division of Red Hat. All rights reserved.