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 Summary
Constructors Constructor Description ListenerContext(CacheListener<? super K,? super V> listener, ConcurrentFIFOExoCache cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheInfogetCacheInfo()Returns cache infos.longgetLiveTime()Returns the cache entry life time in seconds.intgetMaxSize()Returns the cache max size.StringgetName()Returns the cache name.intgetSize()Returns the cache size.voidonClearCache()voidonExpire(K key, V obj)voidonGet(K key, V obj)voidonPut(K key, V obj)voidonPutLocal(K key, V obj)voidonRemove(K key, V obj)
-
-
-
Constructor Detail
-
ListenerContext
public ListenerContext(CacheListener<? super K,? super V> listener, ConcurrentFIFOExoCache cache)
-
-
Method Detail
-
getCacheInfo
public CacheInfo getCacheInfo()
Description copied from interface:CacheListenerContextReturns cache infos.- Specified by:
getCacheInfoin interfaceCacheListenerContext- Returns:
- cache info
-
getName
public String getName()
Description copied from interface:CacheInfoReturns the cache name.
-
getMaxSize
public int getMaxSize()
Description copied from interface:CacheInfoReturns the cache max size.- Specified by:
getMaxSizein interfaceCacheInfo- Returns:
- the max size
-
getLiveTime
public long getLiveTime()
Description copied from interface:CacheInfoReturns the cache entry life time in seconds.- Specified by:
getLiveTimein interfaceCacheInfo- Returns:
- the life time
-
getSize
public int getSize()
Description copied from interface:CacheInfoReturns the cache size.
-
onClearCache
public void onClearCache()
-
-