|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Cache.EntryListener
Interface describing callback methods, which are invoked when changes are made in the underlying cache.
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. |
Method Detail |
---|
void onEntryExpired(Object key)
key
- The key of the entry that expiredvoid onEntryRemoved(Object key)
Cache.remove(Object)
.
key
- The key of the entry that was removedvoid onEntryUpdated(Object key, Object value)
key
- The key of the entry that was updatedvalue
- The new value of the entryvoid onEntryCreated(Object key, Object value)
key
- The key of the entry that was addedvalue
- The value of the entryvoid onEntryRead(Object key, Object value)
key
- The key of the entry that was readvalue
- The value of the entry readObject clone() throws CloneNotSupportedException
Cloneable
to indicate it supports cloning.
CloneNotSupportedException
- if cloning is not supportedCloneable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |