public class LoggingCacheListener extends Object implements CacheListener
| Constructor and Description |
|---|
LoggingCacheListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onClearCache(CacheListenerContext context)
The cache is globally cleared.
|
void |
onExpire(CacheListenerContext context,
Serializable key,
Object obj)
An entry is expired from the cache.
|
void |
onGet(CacheListenerContext context,
Serializable key,
Object obj)
An entry is retrieved from the cache.
|
void |
onPut(CacheListenerContext context,
Serializable key,
Object obj)
An entry is inserted in the cache.
|
void |
onRemove(CacheListenerContext context,
Serializable key,
Object obj)
An entry is removed from the cache.
|
public void onClearCache(CacheListenerContext context) throws Exception
CacheListeneronClearCache in interface CacheListenercontext - the listener contextException - any exceptionpublic void onExpire(CacheListenerContext context, Serializable key, Object obj) throws Exception
CacheListeneronExpire in interface CacheListenercontext - the listener contextkey - the entry keyobj - the entry valueException - any exceptionpublic void onGet(CacheListenerContext context, Serializable key, Object obj) throws Exception
CacheListeneronGet in interface CacheListenercontext - the listener contextkey - the entry keyobj - the entry valueException - any exceptionpublic void onPut(CacheListenerContext context, Serializable key, Object obj) throws Exception
CacheListeneronPut in interface CacheListenercontext - the listener contextkey - the entry keyobj - the entry valueException - any exceptionpublic void onRemove(CacheListenerContext context, Serializable key, Object obj) throws Exception
CacheListeneronRemove in interface CacheListenercontext - the listener contextkey - the entry keyobj - the entry valueException - any exceptionCopyright © 2017 eXo Platform SAS. All Rights Reserved.