|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.notifications.AbstractListenerImpl
org.infinispan.notifications.cachelistener.CacheNotifierImpl
public final class CacheNotifierImpl
Helper class that handles all notifications to registered listeners.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.infinispan.notifications.AbstractListenerImpl |
---|
AbstractListenerImpl.ListenerInvocation |
Field Summary |
---|
Fields inherited from class org.infinispan.notifications.AbstractListenerImpl |
---|
asyncProcessor, listenersMap, syncProcessor |
Constructor Summary | |
---|---|
CacheNotifierImpl()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.infinispan.notifications.AbstractListenerImpl |
---|
addListener, getListenerCollectionForAnnotation, getListeners, removeListener, start, testListenerClassValidity, testListenerMethodValidity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.infinispan.notifications.Listenable |
---|
addListener, getListeners, removeListener |
Constructor Detail |
---|
public CacheNotifierImpl()
Method Detail |
---|
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(Collection<Address> oldView, Collection<Address> newView, long newViewId, boolean pre)
notifyDataRehashed
in interface CacheNotifier
public void notifyTopologyChanged(ConsistentHash oldConsistentHash, ConsistentHash newConsistentHash, boolean pre)
notifyTopologyChanged
in interface CacheNotifier
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |