|
||||||||||
| 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. |
java.lang.Object |
get(java.io.Serializable name)
Performs a lookup operation. |
java.util.List |
getCachedObjects()
Returns a list of cached object that are considered as valid when the method is called. |
int |
getCacheHit()
|
int |
getCacheMiss()
|
int |
getCacheSize()
|
java.lang.String |
getLabel()
|
long |
getLiveTime()
|
int |
getMaxSize()
|
java.lang.String |
getName()
|
boolean |
isDistributed()
|
boolean |
isLogEnabled()
|
boolean |
isReplicated()
|
void |
put(java.io.Serializable name,
java.lang.Object obj)
Performs a put in the cache. |
void |
putMap(java.util.Map<java.io.Serializable,java.lang.Object> objs)
Performs a put of all the entries provided by the map argument. |
java.lang.Object |
remove(java.io.Serializable name)
Removes an entry from the cache. |
java.util.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(java.lang.String s)
|
void |
setLiveTime(long period)
|
void |
setLogEnabled(boolean b)
|
void |
setMaxSize(int max)
|
void |
setName(java.lang.String name)
|
void |
setReplicated(boolean b)
|
| Method Detail |
|---|
java.lang.String getName()
void setName(java.lang.String name)
java.lang.String getLabel()
void setLabel(java.lang.String s)
java.lang.Object get(java.io.Serializable name)
throws java.lang.Exception
name - the cache key
java.lang.Exception - any exception
java.lang.Object remove(java.io.Serializable name)
throws java.lang.Exception
name - the cache key
java.lang.Exception - any exception
void put(java.io.Serializable name,
java.lang.Object obj)
throws java.lang.Exception
name - the cache keyobj - the cached value
java.lang.Exception - any exception
void putMap(java.util.Map<java.io.Serializable,java.lang.Object> objs)
throws java.lang.Exception
objs - the objects to put
java.lang.Exception - any exception
void clearCache()
throws java.lang.Exception
java.lang.Exception - any exception
void select(CachedObjectSelector selector)
throws java.lang.Exception
selector - the selector
java.lang.Exception - any exceptionint getCacheSize()
int getMaxSize()
void setMaxSize(int max)
long getLiveTime()
void setLiveTime(long period)
int getCacheHit()
int getCacheMiss()
java.util.List getCachedObjects()
java.util.List removeCachedObjects()
throws java.lang.Exception
java.lang.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 | |||||||||