public static interface Cache.EntryListener
Modifier and Type | Method and Description |
---|---|
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.
|
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
Copyright © 2010–2024. All rights reserved.