|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.lateral.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 | |
private LateralCache |
cache
|
private static org.apache.commons.logging.Log |
log
|
private ICacheEventQueue |
q
|
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 event queue by starting up a new instance. |
ICacheElement |
get(java.io.Serializable key)
Synchronously reads from the lateral cache. |
java.lang.String |
getCacheName()
Gets the cacheName attribute of the LateralCacheNoWait object |
int |
getCacheType()
No lateral invokation. |
java.util.Set |
getGroupKeys(java.lang.String groupName)
Gets the set of keys of objects currently in the group |
int |
getSize()
No lateral invokation. |
int |
getStatus()
Returns the asyn cache status. |
boolean |
remove(java.io.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. |
java.lang.String |
toString()
Description of the Method |
void |
update(ICacheElement ce)
Description of the Method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final org.apache.commons.logging.Log log
private final LateralCache cache
private ICacheEventQueue q
Constructor Detail |
public LateralCacheNoWait(LateralCache cache)
cache
- Method Detail |
public void update(ICacheElement ce) throws java.io.IOException
update
in interface AuxiliaryCache
java.io.IOException
public ICacheElement get(java.io.Serializable key)
get
in interface AuxiliaryCache
public java.util.Set getGroupKeys(java.lang.String groupName)
AuxiliaryCache
getGroupKeys
in interface AuxiliaryCache
public boolean remove(java.io.Serializable key)
remove
in interface AuxiliaryCache
public void removeAll()
removeAll
in interface AuxiliaryCache
public void dispose()
dispose
in interface AuxiliaryCache
public int getSize()
getSize
in interface AuxiliaryCache
public int getCacheType()
getCacheType
in interface ICacheType
public int getStatus()
getStatus
in interface AuxiliaryCache
public java.lang.String getCacheName()
getCacheName
in interface AuxiliaryCache
public void fixCache(ILateralCacheService lateral)
public void resetEventQ()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |