Class LoggingCacheListener
- java.lang.Object
-
- org.exoplatform.services.cache.impl.LoggingCacheListener
-
- All Implemented Interfaces:
CacheListener
public class LoggingCacheListener extends Object implements CacheListener
Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Oct 4, 2008
-
-
Constructor Summary
Constructors Constructor Description LoggingCacheListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonClearCache(CacheListenerContext context)The cache is globally cleared.voidonExpire(CacheListenerContext context, Serializable key, Object obj)An entry is expired from the cache.voidonGet(CacheListenerContext context, Serializable key, Object obj)An entry is retrieved from the cache.voidonPut(CacheListenerContext context, Serializable key, Object obj)An entry is inserted in the cache.voidonRemove(CacheListenerContext context, Serializable key, Object obj)An entry is removed from the cache.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.exoplatform.services.cache.CacheListener
onPutLocal
-
-
-
-
Method Detail
-
onClearCache
public void onClearCache(CacheListenerContext context) throws Exception
Description copied from interface:CacheListenerThe cache is globally cleared.- Specified by:
onClearCachein interfaceCacheListener- Parameters:
context- the listener context- Throws:
Exception- any exception
-
onExpire
public void onExpire(CacheListenerContext context, Serializable key, Object obj) throws Exception
Description copied from interface:CacheListenerAn entry is expired from the cache.- Specified by:
onExpirein interfaceCacheListener- Parameters:
context- the listener contextkey- the entry keyobj- the entry value- Throws:
Exception- any exception
-
onGet
public void onGet(CacheListenerContext context, Serializable key, Object obj) throws Exception
Description copied from interface:CacheListenerAn entry is retrieved from the cache.- Specified by:
onGetin interfaceCacheListener- Parameters:
context- the listener contextkey- the entry keyobj- the entry value- Throws:
Exception- any exception
-
onPut
public void onPut(CacheListenerContext context, Serializable key, Object obj) throws Exception
Description copied from interface:CacheListenerAn entry is inserted in the cache.- Specified by:
onPutin interfaceCacheListener- Parameters:
context- the listener contextkey- the entry keyobj- the entry value- Throws:
Exception- any exception
-
onRemove
public void onRemove(CacheListenerContext context, Serializable key, Object obj) throws Exception
Description copied from interface:CacheListenerAn entry is removed from the cache.- Specified by:
onRemovein interfaceCacheListener- Parameters:
context- the listener contextkey- the entry keyobj- the entry value- Throws:
Exception- any exception
-
-