|
||||||||||
| 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()
|
java.lang.Object |
get(java.io.Serializable name)
|
java.util.List<java.lang.Object> |
getCachedObjects()
|
int |
getCacheHit()
|
int |
getCacheMiss()
|
int |
getCacheSize()
|
java.lang.String |
getLabel()
|
java.lang.String |
getName()
|
boolean |
isDistributed()
|
boolean |
isLogEnabled()
|
boolean |
isReplicated()
|
void |
put(java.io.Serializable name,
java.lang.Object obj)
|
void |
putMap(java.util.Map<java.io.Serializable,java.lang.Object> objs)
|
java.lang.Object |
remove(java.io.Serializable name)
|
java.util.List<java.lang.Object> |
removeCachedObjects()
|
void |
select(CachedObjectSelector selector)
|
void |
setDistributed(boolean distributed)
|
void |
setLabel(java.lang.String label)
|
void |
setLogEnabled(boolean logEnabled)
|
void |
setName(java.lang.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 java.lang.Exception
clearCache in interface ExoCachejava.lang.Exception
public java.lang.Object get(java.io.Serializable name)
throws java.lang.Exception
get in interface ExoCachejava.lang.Exceptionpublic int getCacheHit()
getCacheHit in interface ExoCachepublic int getCacheMiss()
getCacheMiss in interface ExoCachepublic int getCacheSize()
getCacheSize in interface ExoCachepublic java.util.List<java.lang.Object> getCachedObjects()
getCachedObjects in interface ExoCachepublic java.lang.String getLabel()
getLabel in interface ExoCachepublic java.lang.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(java.io.Serializable name,
java.lang.Object obj)
throws java.lang.Exception
put in interface ExoCachejava.lang.Exception
public void putMap(java.util.Map<java.io.Serializable,java.lang.Object> objs)
throws java.lang.Exception
putMap in interface ExoCachejava.lang.Exception
public java.lang.Object remove(java.io.Serializable name)
throws java.lang.Exception
remove in interface ExoCachejava.lang.Exception
public java.util.List<java.lang.Object> removeCachedObjects()
throws java.lang.Exception
removeCachedObjects in interface ExoCachejava.lang.Exception
public void select(CachedObjectSelector selector)
throws java.lang.Exception
select in interface ExoCachejava.lang.Exceptionpublic void setDistributed(boolean distributed)
setDistributed in interface ExoCachepublic void setLabel(java.lang.String label)
setLabel in interface ExoCachepublic void setLogEnabled(boolean logEnabled)
setLogEnabled in interface ExoCachepublic void setName(java.lang.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 | |||||||||