|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.remote.RemoteCacheNoWait
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 interface org.apache.jcs.engine.behavior.ICacheType |
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE |
Constructor Summary | |
RemoteCacheNoWait(RemoteCache cache)
Constructs with the given remote cache, and fires up an event queue for aysnchronous processing. |
Method Summary | |
void |
dispose()
Adds a dispose request to the remote cache. |
void |
fixCache(IRemoteCacheService remote)
Replaces the remote 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 remote cache. |
java.lang.String |
getCacheName()
Gets the cacheName attribute of the RemoteCacheNoWait object |
int |
getCacheType()
No remote invokation. |
java.util.Set |
getGroupKeys(java.lang.String groupName)
Gets the set of keys of objects currently in the group |
protected RemoteCache |
getRemoteCache()
This is temporary. |
int |
getSize()
No remote invokation. |
IStats |
getStatistics()
Returns the historical and statistical data for a region's auxiliary cache. |
java.lang.String |
getStats()
getStats |
int |
getStatus()
Returns the asyn cache status. |
boolean |
remove(java.io.Serializable key)
Adds a remove request to the remote cache. |
void |
removeAll()
Adds a removeAll request to the remote cache. |
void |
resetEventQ()
Resets the event q by first destroying the existing one and starting up new one. |
java.lang.String |
toString()
|
void |
update(ICacheElement ce)
Puts an item to the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RemoteCacheNoWait(RemoteCache cache)
cache
- Method Detail |
public void update(ICacheElement ce) throws java.io.IOException
AuxiliaryCache
update
in interface AuxiliaryCache
ce
-
java.io.IOException
public ICacheElement get(java.io.Serializable key) throws java.io.IOException
get
in interface AuxiliaryCache
key
-
java.io.IOException
public java.util.Set getGroupKeys(java.lang.String groupName) throws java.io.IOException
AuxiliaryCache
getGroupKeys
in interface AuxiliaryCache
groupName
-
java.io.IOException
public boolean remove(java.io.Serializable key) throws java.io.IOException
remove
in interface AuxiliaryCache
key
-
java.io.IOException
public void removeAll() throws java.io.IOException
removeAll
in interface AuxiliaryCache
java.io.IOException
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(IRemoteCacheService remote)
remote
- public void resetEventQ()
protected RemoteCache getRemoteCache()
public java.lang.String toString()
public java.lang.String getStats()
getStats
in interface ICache
public IStats getStatistics()
AuxiliaryCache
getStatistics
in interface AuxiliaryCache
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |