|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.cache.impl.jboss.AbstractExoCache
public abstract class AbstractExoCache
An ExoCache implementation based on Node.
Created by The eXo Platform SAS
Author : eXoPlatform
exo@exoplatform.com
20 juil. 2009
| Nested Class Summary | |
|---|---|
class |
AbstractExoCache.CacheEventListener
|
| Field Summary | |
|---|---|
protected org.jboss.cache.TreeCache |
cache
|
| Constructor Summary | |
|---|---|
AbstractExoCache(ExoCacheConfig config,
org.jboss.cache.TreeCache cache)
|
|
| Method Summary | |
|---|---|
void |
addCacheListener(CacheListener listener)
|
void |
clearCache()
Clears the cache. |
Object |
get(Serializable name)
Performs a lookup operation. |
List<Object> |
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()
|
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<Object> |
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 distributed)
|
void |
setLabel(String label)
|
void |
setLogEnabled(boolean logEnabled)
|
void |
setName(String name)
|
void |
setReplicated(boolean replicated)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.exoplatform.services.cache.ExoCache |
|---|
getLiveTime, getMaxSize, setLiveTime, setMaxSize |
| Field Detail |
|---|
protected final org.jboss.cache.TreeCache cache
| Constructor Detail |
|---|
public AbstractExoCache(ExoCacheConfig config,
org.jboss.cache.TreeCache cache)
| Method Detail |
|---|
public void addCacheListener(CacheListener listener)
addCacheListener in interface ExoCache
public void clearCache()
throws Exception
clearCache in interface ExoCacheException - any exception
public Object get(Serializable name)
throws Exception
get in interface ExoCachename - the cache key
Exception - any exceptionpublic int getCacheHit()
getCacheHit in interface ExoCachepublic int getCacheMiss()
getCacheMiss in interface ExoCachepublic int getCacheSize()
getCacheSize in interface ExoCachepublic List<Object> getCachedObjects()
getCachedObjects in interface ExoCachepublic String getLabel()
getLabel in interface ExoCachepublic String getName()
getName in interface ExoCachepublic boolean isDistributed()
isDistributed in interface ExoCachepublic boolean isLogEnabled()
isLogEnabled in interface ExoCachepublic boolean isReplicated()
isReplicated in interface ExoCache
public void put(Serializable name,
Object obj)
throws Exception
put in interface ExoCachename - the cache keyobj - the cached value
Exception - any exception
public void putMap(Map<Serializable,Object> objs)
throws Exception
putMap in interface ExoCacheobjs - the objects to put
Exception - any exception
public Object remove(Serializable name)
throws Exception
remove in interface ExoCachename - the cache key
Exception - any exception
public List<Object> removeCachedObjects()
throws Exception
removeCachedObjects in interface ExoCacheException - any exception
public void select(CachedObjectSelector selector)
throws Exception
select in interface ExoCacheselector - the selector
Exception - any exceptionpublic void setDistributed(boolean distributed)
setDistributed in interface ExoCachepublic void setLabel(String label)
setLabel in interface ExoCachepublic void setLogEnabled(boolean logEnabled)
setLogEnabled in interface ExoCachepublic void setName(String name)
setName in interface ExoCachepublic void setReplicated(boolean replicated)
setReplicated in interface ExoCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||