Class ListenerContext<K,V>

java.lang.Object
org.exoplatform.services.cache.concurrent.ListenerContext<K,V>
All Implemented Interfaces:
CacheInfo, CacheListenerContext

public class ListenerContext<K,V> extends Object implements CacheListenerContext, CacheInfo
Version:
$Revision$
Author:
Julien Viet
  • Constructor Details

  • Method Details

    • getCacheInfo

      public CacheInfo getCacheInfo()
      Description copied from interface: CacheListenerContext
      Returns cache infos.
      Specified by:
      getCacheInfo in interface CacheListenerContext
      Returns:
      cache info
    • getName

      public String getName()
      Description copied from interface: CacheInfo
      Returns the cache name.
      Specified by:
      getName in interface CacheInfo
      Returns:
      the cache name
    • getMaxSize

      public int getMaxSize()
      Description copied from interface: CacheInfo
      Returns the cache max size.
      Specified by:
      getMaxSize in interface CacheInfo
      Returns:
      the max size
    • getLiveTime

      public long getLiveTime()
      Description copied from interface: CacheInfo
      Returns the cache entry life time in seconds.
      Specified by:
      getLiveTime in interface CacheInfo
      Returns:
      the life time
    • getSize

      public int getSize()
      Description copied from interface: CacheInfo
      Returns the cache size.
      Specified by:
      getSize in interface CacheInfo
      Returns:
      the size
    • onExpire

      public void onExpire(K key, V obj)
    • onRemove

      public void onRemove(K key, V obj)
    • onPut

      public void onPut(K key, V obj)
    • onPutLocal

      public void onPutLocal(K key, V obj)
    • onGet

      public void onGet(K key, V obj)
    • onClearCache

      public void onClearCache()