Class LateralCacheNoWait<K,V> 
java.lang.Object
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCache<K,V>
 
org.apache.commons.jcs3.auxiliary.lateral.LateralCacheNoWait<K,V> 
- All Implemented Interfaces:
- AuxiliaryCache<K,,- V> - ICache<K,,- V> - ICacheType
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.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.commons.jcs3.engine.behavior.ICacheTypeICacheType.CacheType
- 
Field SummaryFields inherited from interface org.apache.commons.jcs3.engine.behavior.ICacheNAME_COMPONENT_DELIMITER
- 
Constructor SummaryConstructorsConstructorDescriptionLateralCacheNoWait(LateralCache<K, V> cache) Constructs with the given lateral cache, and fires up an event queue for asynchronous processing.
- 
Method SummaryModifier and TypeMethodDescriptionvoiddispose()Adds a dispose request to the lateral cache.voidfixCache(ICacheServiceNonLocal<K, V> lateral) Replaces the lateral cache service handle with the given handle and reset the queue by starting up a new instance.Synchronously reads from the lateral cache.This returns the generic attributes for an auxiliary cache.Gets the cacheName attribute of the LateralCacheNoWait objectNo lateral invocation.this won't be called since we don't do ICache logging here.The identifying key to this no waitReturn the keys in this cache.Map<K,ICacheElement<K, V>> getMatching(String pattern) Synchronously reads from the lateral cache.Map<K,ICacheElement<K, V>> getMultiple(Set<K> keys) Gets multiple items from the cache based on the given set of keys.intgetSize()No lateral invocation.getStats()getStatsReturns the async cache status.booleanAdds a remove request to the lateral cache.voidAdds a removeAll request to the lateral cache.voidResets the event q by first destroying the existing one and starting up new one.voidsetIdentityKey(String identityKey) Set the identifying key to this no waittoString()voidupdate(ICacheElement<K, V> ce) Puts an item to the cache.Methods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCachecreateICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, processGetMultiple, setCacheEventLogger, setElementSerializer, setKeyMatcher
- 
Constructor Details- 
LateralCacheNoWaitConstructs with the given lateral cache, and fires up an event queue for asynchronous processing.- Parameters:
- cache-
 
 
- 
- 
Method Details- 
getIdentityKeyThe identifying key to this no wait- Returns:
- the identity key
- Since:
- 3.1
 
- 
setIdentityKeySet the identifying key to this no wait- Parameters:
- identityKey- the identityKey to set
- Since:
- 3.1
 
- 
updateDescription copied from interface:ICachePuts an item to the cache.- Parameters:
- ce-
- Throws:
- IOException
 
- 
getSynchronously reads from the lateral cache.
- 
getMultipleGets multiple items from the cache based on the given set of keys.- Parameters:
- keys-
- Returns:
- a map of K key to ICacheElement<K, V> element, or an empty map if there is no data in cache for any of these keys
 
- 
getMatchingSynchronously reads from the lateral cache.- Parameters:
- pattern-
- Returns:
- ICacheElement<K, V> if found, else empty
 
- 
getKeySetReturn the keys in this cache.- Returns:
- a set of the key type TODO This should probably be done in chunks with a range passed in. This will be a problem if someone puts a 1,000,000 or so items in a region.
- Throws:
- IOException- if access to the auxiliary cache fails
- See Also:
 
- 
removeAdds a remove request to the lateral cache.- Parameters:
- key-
- Returns:
- always false
 
- 
removeAllAdds a removeAll request to the lateral cache.
- 
disposeAdds a dispose request to the lateral cache.
- 
getSizeNo lateral invocation.- Returns:
- The size value
 
- 
getCacheTypeNo lateral invocation.- Returns:
- The cacheType value
 
- 
getStatusReturns the async cache status. An error status indicates either the lateral connection is not available, or the asyn queue has been unexpectedly destroyed. No lateral invocation.- Returns:
- The status value
 
- 
getCacheNameGets the cacheName attribute of the LateralCacheNoWait object- Returns:
- The cacheName value
 
- 
fixCacheReplaces the lateral cache service handle with the given handle and reset the queue by starting up a new instance.- Parameters:
- lateral-
 
- 
resetEventQResets the event q by first destroying the existing one and starting up new one.
- 
getAuxiliaryCacheAttributesDescription copied from interface:AuxiliaryCacheThis returns the generic attributes for an auxiliary cache. Most implementations will cast this to a more specific type.- Returns:
- Returns the AuxiliaryCacheAttributes.
 
- 
getStatsgetStats- Returns:
- String
 
- 
getEventLoggingExtraInfothis won't be called since we don't do ICache logging here.- Specified by:
- getEventLoggingExtraInfoin class- AbstractAuxiliaryCache<K,- V> 
- Returns:
- String
 
- 
getStatistics- Returns:
- statistics about this communication
 
- 
toString
 
-