Package org.apache.commons.jcs3.engine
Class ZombieCacheService<K,V> 
java.lang.Object
org.apache.commons.jcs3.engine.ZombieCacheService<K,V> 
- All Implemented Interfaces:
- ICacheService<K,,- V> - IZombie
- Direct Known Subclasses:
- ZombieCacheServiceNonLocal
Zombie adapter for any cache service. Balks at every call.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidFrees the specified cache.Returns a cache bean from the specified cache; or null if the key does not exist.Logs the get to debug, but always balks.Map<K,ICacheElement<K, V>> getMatching(String cacheName, String pattern) Returns an empty map.Map<K,ICacheElement<K, V>> getMultiple(String cacheName, Set<K> keys) Returns an empty map.voidput(ICacheElement<K, V> item) voidrelease()Frees all caches.voidRemoves the given key from the specified cache.voidRemove all keys from the specified cache.voidupdate(ICacheElement<K, V> item) Does nothing.
- 
Constructor Details- 
ZombieCacheServicepublic ZombieCacheService()
 
- 
- 
Method Details- 
put- Parameters:
- item-
 
- 
updateDoes nothing.- Specified by:
- updatein interface- ICacheService<K,- V> 
- Parameters:
- item-
 
- 
getDescription copied from interface:ICacheServiceReturns a cache bean from the specified cache; or null if the key does not exist.- Specified by:
- getin interface- ICacheService<K,- V> 
- Parameters:
- cacheName-
- key-
- Returns:
- null. zombies have no internal data
 
- 
getMultipleReturns an empty map. Zombies have no internal data.- Specified by:
- getMultiplein interface- ICacheService<K,- V> 
- Parameters:
- cacheName-
- keys-
- Returns:
- Collections.EMPTY_MAP
 
- 
getMatchingReturns an empty map. Zombies have no internal data.- Specified by:
- getMatchingin interface- ICacheService<K,- V> 
- Parameters:
- cacheName-
- pattern-
- Returns:
- Collections.EMPTY_MAP
 
- 
getLogs the get to debug, but always balks.- Parameters:
- cacheName-
- key-
- container-
- Returns:
- null always
 
- 
removeDescription copied from interface:ICacheServiceRemoves the given key from the specified cache.- Specified by:
- removein interface- ICacheService<K,- V> 
- Parameters:
- cacheName-
- key-
 
- 
removeAllDescription copied from interface:ICacheServiceRemove all keys from the specified cache.- Specified by:
- removeAllin interface- ICacheService<K,- V> 
- Parameters:
- cacheName-
 
- 
disposeDescription copied from interface:ICacheServiceFrees the specified cache.- Specified by:
- disposein interface- ICacheService<K,- V> 
- Parameters:
- cacheName-
 
- 
releaseFrees all caches.- Specified by:
- releasein interface- ICacheService<K,- V> 
 
 
-