|
||||||||||
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 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 |
notifyCacheEntryActivated(Object key,
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,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a CacheEntryEvicted event. |
void |
notifyCacheEntryInvalidated(Object key,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a CacheEntryInvalidated event. |
void |
notifyCacheEntryLoaded(Object key,
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,
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,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a CacheEntryVisited event. |
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, removeAllCacheListeners, 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, boolean pre, InvocationContext ctx)
CacheNotifier
notifyCacheEntryVisited
in interface CacheNotifier
public void notifyCacheEntryEvicted(Object key, boolean pre, InvocationContext ctx)
CacheNotifier
notifyCacheEntryEvicted
in interface CacheNotifier
public void notifyCacheEntryInvalidated(Object key, boolean pre, InvocationContext ctx)
CacheNotifier
notifyCacheEntryInvalidated
in interface CacheNotifier
public void notifyCacheEntryLoaded(Object key, boolean pre, InvocationContext ctx)
CacheNotifier
notifyCacheEntryLoaded
in interface CacheNotifier
public void notifyCacheEntryActivated(Object key, boolean pre, InvocationContext ctx)
CacheNotifier
notifyCacheEntryActivated
in interface CacheNotifier
public void notifyCacheEntryPassivated(Object key, 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
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |