|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.AbstractAuxiliaryCache
org.apache.jcs.auxiliary.lateral.LateralCacheNoWait
public class LateralCacheNoWait
Used to queue up update requests to the underlying cache. These requests will be processed in their order of arrival via the cache event queue processor.
Field Summary |
---|
Fields inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCache |
---|
cacheEventLogger, elementSerializer, keyMatcher |
Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType |
---|
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE |
Constructor Summary | |
---|---|
LateralCacheNoWait(LateralCache cache)
Constructs with the given lateral cache, and fires up an event queue for aysnchronous processing. |
Method Summary | |
---|---|
void |
dispose()
Adds a dispose request to the lateral cache. |
void |
fixCache(ILateralCacheService lateral)
Replaces the lateral cache service handle with the given handle and reset the queue by starting up a new instance. |
ICacheElement |
get(Serializable key)
Synchronously reads from the lateral cache. |
AuxiliaryCacheAttributes |
getAuxiliaryCacheAttributes()
This returns the generic attributes for an auxiliary cache. |
String |
getCacheName()
Gets the cacheName attribute of the LateralCacheNoWait object |
int |
getCacheType()
No lateral invocation. |
String |
getEventLoggingExtraInfo()
this won't be called since we don't do ICache logging here. |
Set |
getGroupKeys(String groupName)
Gets the set of keys of objects currently in the group |
Map |
getMatching(String pattern)
Synchronously reads from the lateral cache. |
Map |
getMultiple(Set keys)
Gets multiple items from the cache based on the given set of keys. |
int |
getSize()
No lateral invocation. |
IStats |
getStatistics()
|
String |
getStats()
getStats |
int |
getStatus()
Returns the asyn cache status. |
boolean |
remove(Serializable key)
Adds a remove request to the lateral cache. |
void |
removeAll()
Adds a removeAll request to the lateral cache. |
void |
resetEventQ()
Resets the event q by first destroying the existing one and starting up new one. |
String |
toString()
|
void |
update(ICacheElement ce)
Puts an item to the cache. |
Methods inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCache |
---|
createICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, setCacheEventLogger, setElementSerializer, setKeyMatcher |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LateralCacheNoWait(LateralCache cache)
cache
- Method Detail |
---|
public void update(ICacheElement ce) throws IOException
ICache
ce
-
IOException
public ICacheElement get(Serializable key)
key
-
public Map getMultiple(Set keys)
keys
-
public Map getMatching(String pattern)
pattern
-
public Set getGroupKeys(String groupName)
AuxiliaryCache
groupName
-
public boolean remove(Serializable key)
key
-
public void removeAll()
public void dispose()
public int getSize()
public int getCacheType()
public int getStatus()
public String getCacheName()
public void fixCache(ILateralCacheService lateral)
lateral
- public void resetEventQ()
public AuxiliaryCacheAttributes getAuxiliaryCacheAttributes()
AuxiliaryCache
public String getStats()
public String getEventLoggingExtraInfo()
getEventLoggingExtraInfo
in class AbstractAuxiliaryCache
public IStats getStatistics()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |