|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExoCache
Created by The eXo Platform SAS. Author : Tuan Nguyen tuan08@users.sourceforge.net Date: Jun 14, 2003 Time: 1:12:22 PM
| Method Summary | |
|---|---|
void |
addCacheListener(CacheListener listener)
|
void |
clearCache()
Clears the cache. |
Object |
get(Serializable name)
Performs a lookup operation. |
List |
getCachedObjects()
Returns a list of cached object that are considered as valid when the method is called. |
int |
getCacheHit()
|
int |
getCacheMiss()
|
int |
getCacheSize()
|
String |
getLabel()
|
long |
getLiveTime()
|
int |
getMaxSize()
|
String |
getName()
|
boolean |
isDistributed()
|
boolean |
isLogEnabled()
|
boolean |
isReplicated()
|
void |
put(Serializable name,
Object obj)
Performs a put in the cache. |
void |
putMap(Map<Serializable,Object> objs)
Performs a put of all the entries provided by the map argument. |
Object |
remove(Serializable name)
Removes an entry from the cache. |
List |
removeCachedObjects()
Clears the cache and returns the list of cached object that are considered as valid when the method is called. |
void |
select(CachedObjectSelector selector)
Selects a subset of the cache. |
void |
setDistributed(boolean b)
|
void |
setLabel(String s)
|
void |
setLiveTime(long period)
|
void |
setLogEnabled(boolean b)
|
void |
setMaxSize(int max)
|
void |
setName(String name)
|
void |
setReplicated(boolean b)
|
| Method Detail |
|---|
String getName()
void setName(String name)
String getLabel()
void setLabel(String s)
Object get(Serializable name)
throws Exception
name - the cache key
Exception - any exception
Object remove(Serializable name)
throws Exception
name - the cache key
Exception - any exception
void put(Serializable name,
Object obj)
throws Exception
name - the cache keyobj - the cached value
Exception - any exception
void putMap(Map<Serializable,Object> objs)
throws Exception
objs - the objects to put
Exception - any exception
void clearCache()
throws Exception
Exception - any exception
void select(CachedObjectSelector selector)
throws Exception
selector - the selector
Exception - any exceptionint getCacheSize()
int getMaxSize()
void setMaxSize(int max)
long getLiveTime()
void setLiveTime(long period)
int getCacheHit()
int getCacheMiss()
List getCachedObjects()
List removeCachedObjects()
throws Exception
Exception - any exceptionvoid addCacheListener(CacheListener listener)
boolean isDistributed()
void setDistributed(boolean b)
boolean isReplicated()
void setReplicated(boolean b)
boolean isLogEnabled()
void setLogEnabled(boolean b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||