public interface CacheListener<K extends Serializable,V>
| Modifier and Type | Method and Description |
|---|---|
void |
onClearCache(CacheListenerContext context)
The cache is globally cleared.
|
void |
onExpire(CacheListenerContext context,
K key,
V obj)
An entry is expired from the cache.
|
void |
onGet(CacheListenerContext context,
K key,
V obj)
An entry is retrieved from the cache.
|
void |
onPut(CacheListenerContext context,
K key,
V obj)
An entry is inserted in the cache.
|
void |
onRemove(CacheListenerContext context,
K key,
V obj)
An entry is removed from the cache.
|
void onExpire(CacheListenerContext context, K key, V obj) throws Exception
context - the listener contextkey - the entry keyobj - the entry valueException - any exceptionvoid onRemove(CacheListenerContext context, K key, V obj) throws Exception
context - the listener contextkey - the entry keyobj - the entry valueException - any exceptionvoid onPut(CacheListenerContext context, K key, V obj) throws Exception
context - the listener contextkey - the entry keyobj - the entry valueException - any exceptionvoid onGet(CacheListenerContext context, K key, V obj) throws Exception
context - the listener contextkey - the entry keyobj - the entry valueException - any exceptionvoid onClearCache(CacheListenerContext context) throws Exception
context - the listener contextException - any exceptionCopyright © 2018 eXo Platform SAS. All Rights Reserved.