public class ListenerContext<K,V> extends Object implements CacheListenerContext, CacheInfo
| Constructor and Description |
|---|
ListenerContext(CacheListener<? super K,? super V> listener,
ConcurrentFIFOExoCache cache) |
| Modifier and Type | Method and Description |
|---|---|
CacheInfo |
getCacheInfo()
Returns cache infos.
|
long |
getLiveTime()
Returns the cache entry life time in seconds.
|
int |
getMaxSize()
Returns the cache max size.
|
String |
getName()
Returns the cache name.
|
int |
getSize()
Returns the cache size.
|
void |
onClearCache() |
void |
onExpire(K key,
V obj) |
void |
onGet(K key,
V obj) |
void |
onPut(K key,
V obj) |
void |
onPutLocal(K key,
V obj) |
void |
onRemove(K key,
V obj) |
public ListenerContext(CacheListener<? super K,? super V> listener, ConcurrentFIFOExoCache cache)
public CacheInfo getCacheInfo()
CacheListenerContextgetCacheInfo in interface CacheListenerContextpublic String getName()
CacheInfopublic int getMaxSize()
CacheInfogetMaxSize in interface CacheInfopublic long getLiveTime()
CacheInfogetLiveTime in interface CacheInfopublic int getSize()
CacheInfopublic void onClearCache()
Copyright © 2019 eXo Platform SAS. All Rights Reserved.