|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.EntryListenerkey - The key of the entry that expiredpublic void onEntryRemoved(Object key)
Cache.EntryListenerCache.remove(Object).
onEntryRemoved in interface Cache.EntryListenerkey - The key of the entry that was removed
public void onEntryUpdated(Object key,
Object value)
Cache.EntryListener
onEntryUpdated in interface Cache.EntryListenerkey - The key of the entry that was updatedvalue - The new value of the entry
public void onEntryCreated(Object key,
Object value)
Cache.EntryListener
onEntryCreated in interface Cache.EntryListenerkey - The key of the entry that was addedvalue - The value of the entry
public void onEntryRead(Object key,
Object value)
Cache.EntryListener
onEntryRead in interface Cache.EntryListenerkey - The key of the entry that was readvalue - The value of the entry read
public Object clone()
throws CloneNotSupportedException
Cache.EntryListenerCloneable to indicate it supports cloning.
clone in interface Cache.EntryListenerclone in class ObjectCloneNotSupportedException - if cloning is not supportedCloneable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||