eXo Kernel :: Component :: Cache Service 2.4.10-UXP01

org.exoplatform.services.cache.impl
Class LoggingCacheListener

java.lang.Object
  extended by 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
LoggingCacheListener()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingCacheListener

public LoggingCacheListener()
Method Detail

onClearCache

public void onClearCache(CacheListenerContext context)
                  throws Exception
Description copied from interface: CacheListener
The cache is globally cleared.

Specified by:
onClearCache in interface CacheListener
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: CacheListener
An entry is expired from the cache.

Specified by:
onExpire in interface CacheListener
Parameters:
context - the listener context
key - the entry key
obj - the entry value
Throws:
Exception - any exception

onGet

public void onGet(CacheListenerContext context,
                  Serializable key,
                  Object obj)
           throws Exception
Description copied from interface: CacheListener
An entry is retrieved from the cache.

Specified by:
onGet in interface CacheListener
Parameters:
context - the listener context
key - the entry key
obj - the entry value
Throws:
Exception - any exception

onPut

public void onPut(CacheListenerContext context,
                  Serializable key,
                  Object obj)
           throws Exception
Description copied from interface: CacheListener
An entry is inserted in the cache.

Specified by:
onPut in interface CacheListener
Parameters:
context - the listener context
key - the entry key
obj - the entry value
Throws:
Exception - any exception

onRemove

public void onRemove(CacheListenerContext context,
                     Serializable key,
                     Object obj)
              throws Exception
Description copied from interface: CacheListener
An entry is removed from the cache.

Specified by:
onRemove in interface CacheListener
Parameters:
context - the listener context
key - the entry key
obj - the entry value
Throws:
Exception - any exception

eXo Kernel :: Component :: Cache Service 2.4.10-UXP01

Copyright © 2014 eXo Platform SAS. All Rights Reserved.