|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheListener
Interface describing various events that can happen as elements are added to or removed from a cache
| Method Summary | |
|---|---|
void |
onClear()
|
void |
onEvict(Object key)
Triggered when a cache mapping is removed due to eviction |
void |
onLoad(Object key)
Triggered when a cache mapping is created due to the cache loader being consulted |
void |
onPut(Object key)
Triggered when a cache mapping is created due to calling Cache.put() |
void |
onRemove(Object key)
Triggered when a cache mapping is removed due to calling Cache.remove() |
| Methods inherited from interface javax.util.jcache.CacheEventListener |
|---|
handleEvent |
| Method Detail |
|---|
void onClear()
void onEvict(Object key)
key - the object wich is evicted.void onLoad(Object key)
key - the object wich is loaded.void onPut(Object key)
key - the object wich is put.void onRemove(Object key)
key - the object wich is removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||