|
eXo Kernel :: Component :: Cache Service 2.4.0-CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheListener<K extends Serializable,V>
The cache listener allows to be aware of various events that occurs for a cache. For performance reason a listener must perform short time lived operations or should consider to perform jobs asynchronously. Created by The eXo Platform SAS Author : Tuan Nguyen tuan08@users.sourceforge.net Sep 19, 2005
| Method Summary | |
|---|---|
void |
onClearCache(CacheListenerContext context)
The cache is globally cleared. |
void |
onExpire(CacheListenerContext context,
K key,
V obj)
An entry is expired from the cache. |
void |
onGet(CacheListenerContext context,
K key,
V obj)
An entry is retrieved from the cache. |
void |
onPut(CacheListenerContext context,
K key,
V obj)
An entry is inserted in the cache. |
void |
onRemove(CacheListenerContext context,
K key,
V obj)
An entry is removed from the cache. |
| Method Detail |
|---|
void onExpire(CacheListenerContext context,
K key,
V obj)
throws Exception
context - the listener contextkey - the entry keyobj - the entry value
Exception - any exception
void onRemove(CacheListenerContext context,
K key,
V obj)
throws Exception
context - the listener contextkey - the entry keyobj - the entry value
Exception - any exception
void onPut(CacheListenerContext context,
K key,
V obj)
throws Exception
context - the listener contextkey - the entry keyobj - the entry value
Exception - any exception
void onGet(CacheListenerContext context,
K key,
V obj)
throws Exception
context - the listener contextkey - the entry keyobj - the entry value
Exception - any exception
void onClearCache(CacheListenerContext context)
throws Exception
context - the listener context
Exception - any exception
|
eXo Kernel :: Component :: Cache Service 2.4.0-CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||