Class ListenerContext<K,V>
java.lang.Object
org.exoplatform.services.cache.concurrent.ListenerContext<K,V>
- All Implemented Interfaces:
CacheInfo,CacheListenerContext
-
Constructor Summary
ConstructorsConstructorDescriptionListenerContext(CacheListener<? super K, ? super V> listener, ConcurrentFIFOExoCache cache) -
Method Summary
Modifier and TypeMethodDescriptionReturns cache infos.longReturns the cache entry life time in seconds.intReturns the cache max size.getName()Returns the cache name.intgetSize()Returns the cache size.voidvoidvoidvoidvoidonPutLocal(K key, V obj) void
-
Constructor Details
-
ListenerContext
-
-
Method Details
-
getCacheInfo
Description copied from interface:CacheListenerContextReturns cache infos.- Specified by:
getCacheInfoin interfaceCacheListenerContext- Returns:
- cache info
-
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. -
onExpire
-
onRemove
-
onPut
-
onPutLocal
-
onGet
-
onClearCache
public void onClearCache()
-