|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.cache.Cache.EntryListenerAdapter
public static class Cache.EntryListenerAdapter
Adapter implementation for the EntryListener, allowing for overriding only specific callback methods.
Constructor Summary | |
---|---|
Cache.EntryListenerAdapter()
|
Method Summary | |
---|---|
Object |
clone()
Clone operation used by some Cache implementations. |
void |
onEntryCreated(Object key,
Object value)
Invoked when a new item has been added to the cache |
void |
onEntryExpired(Object key)
Invoked when an entry has expired. |
void |
onEntryRead(Object key,
Object value)
Invoked when an item was retrieved from the Cache |
void |
onEntryRemoved(Object key)
Invoked when an item was removed from the cache, either following an expiry, or by explicitly calling Cache.remove(Object) . |
void |
onEntryUpdated(Object key,
Object value)
Invoked when an item has been updated. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cache.EntryListenerAdapter()
Method Detail |
---|
public void onEntryExpired(Object key)
Cache.EntryListener
onEntryExpired
in interface Cache.EntryListener
key
- The key of the entry that expiredpublic void onEntryRemoved(Object key)
Cache.EntryListener
Cache.remove(Object)
.
onEntryRemoved
in interface Cache.EntryListener
key
- The key of the entry that was removedpublic void onEntryUpdated(Object key, Object value)
Cache.EntryListener
onEntryUpdated
in interface Cache.EntryListener
key
- The key of the entry that was updatedvalue
- The new value of the entrypublic void onEntryCreated(Object key, Object value)
Cache.EntryListener
onEntryCreated
in interface Cache.EntryListener
key
- The key of the entry that was addedvalue
- The value of the entrypublic void onEntryRead(Object key, Object value)
Cache.EntryListener
onEntryRead
in interface Cache.EntryListener
key
- The key of the entry that was readvalue
- The value of the entry readpublic Object clone() throws CloneNotSupportedException
Cache.EntryListener
Cloneable
to indicate it supports cloning.
clone
in interface Cache.EntryListener
clone
in class Object
CloneNotSupportedException
- if cloning is not supportedCloneable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |