public class LateralCacheNoWait extends AbstractAuxiliaryCache
cacheEventLogger, elementSerializer, keyMatcher
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE
Constructor and Description |
---|
LateralCacheNoWait(LateralCache cache)
Constructs with the given lateral cache, and fires up an event queue for aysnchronous
processing.
|
Modifier and Type | Method and Description |
---|---|
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(java.io.Serializable key)
Synchronously reads from the lateral cache.
|
AuxiliaryCacheAttributes |
getAuxiliaryCacheAttributes()
This returns the generic attributes for an auxiliary cache.
|
java.lang.String |
getCacheName()
Gets the cacheName attribute of the LateralCacheNoWait object
|
int |
getCacheType()
No lateral invocation.
|
java.lang.String |
getEventLoggingExtraInfo()
this won't be called since we don't do ICache logging here.
|
java.util.Set |
getGroupKeys(java.lang.String groupName)
Gets the set of keys of objects currently in the group
|
java.util.Map |
getMatching(java.lang.String pattern)
Synchronously reads from the lateral cache.
|
java.util.Map |
getMultiple(java.util.Set keys)
Gets multiple items from the cache based on the given set of keys.
|
int |
getSize()
No lateral invocation.
|
IStats |
getStatistics() |
java.lang.String |
getStats()
getStats
|
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() |
void |
update(ICacheElement ce)
Puts an item to the cache.
|
createICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, setCacheEventLogger, setElementSerializer, setKeyMatcher
public LateralCacheNoWait(LateralCache cache)
cache
- public void update(ICacheElement ce) throws java.io.IOException
ICache
ce
- java.io.IOException
public ICacheElement get(java.io.Serializable key)
key
- public java.util.Map getMultiple(java.util.Set keys)
keys
- public java.util.Map getMatching(java.lang.String pattern)
pattern
- public java.util.Set getGroupKeys(java.lang.String groupName)
AuxiliaryCache
groupName
- public boolean remove(java.io.Serializable key)
key
- public void removeAll()
public void dispose()
public int getSize()
public int getCacheType()
public int getStatus()
public java.lang.String getCacheName()
public void fixCache(ILateralCacheService lateral)
lateral
- public void resetEventQ()
public AuxiliaryCacheAttributes getAuxiliaryCacheAttributes()
AuxiliaryCache
public java.lang.String getStats()
public java.lang.String getEventLoggingExtraInfo()
getEventLoggingExtraInfo
in class AbstractAuxiliaryCache
public IStats getStatistics()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.