|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheNotifier
Public interface with all allowed notifications.
Method Summary | |
---|---|
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 interface org.infinispan.notifications.Listenable |
---|
addListener, getListeners, removeListener |
Method Detail |
---|
void notifyCacheEntryCreated(Object key, boolean pre, InvocationContext ctx)
void notifyCacheEntryModified(Object key, Object value, boolean pre, InvocationContext ctx)
void notifyCacheEntryRemoved(Object key, Object value, boolean pre, InvocationContext ctx)
void notifyCacheEntryVisited(Object key, Object value, boolean pre, InvocationContext ctx)
void notifyCacheEntriesEvicted(Collection<InternalCacheEntry> entries, InvocationContext ctx)
void notifyCacheEntryEvicted(Object key, Object value, InvocationContext ctx)
key
- key evictedvalue
- value evictedctx
- contextvoid notifyCacheEntryInvalidated(Object key, Object value, boolean pre, InvocationContext ctx)
void notifyCacheEntryLoaded(Object key, Object value, boolean pre, InvocationContext ctx)
void notifyCacheEntryActivated(Object key, Object value, boolean pre, InvocationContext ctx)
void notifyCacheEntryPassivated(Object key, Object value, boolean pre, InvocationContext ctx)
void notifyTransactionCompleted(GlobalTransaction transaction, boolean successful, InvocationContext ctx)
transaction
- the transaction that has just completedsuccessful
- if true, the transaction committed. If false, this is a rollback eventvoid notifyTransactionRegistered(GlobalTransaction globalTransaction, InvocationContext ctx)
globalTransaction
- void notifyDataRehashed(Collection<Address> oldView, Collection<Address> newView, long newViewId, boolean pre)
void notifyTopologyChanged(ConsistentHash oldConsistentHash, ConsistentHash newConsistentHash, boolean pre)
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |