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 Summary
Constructors -
Method Summary
Modifier 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
-
ZombieCacheService
public ZombieCacheService()
-
-
Method Details
-
put
- Parameters:
item-
-
update
Does nothing.- Specified by:
updatein interfaceICacheService<K,V> - Parameters:
item-
-
get
Description copied from interface:ICacheServiceReturns a cache bean from the specified cache; or null if the key does not exist.- Specified by:
getin interfaceICacheService<K,V> - Parameters:
cacheName-key-- Returns:
- null. zombies have no internal data
-
getMultiple
Returns an empty map. Zombies have no internal data.- Specified by:
getMultiplein interfaceICacheService<K,V> - Parameters:
cacheName-keys-- Returns:
- Collections.EMPTY_MAP
-
getMatching
Returns an empty map. Zombies have no internal data.- Specified by:
getMatchingin interfaceICacheService<K,V> - Parameters:
cacheName-pattern-- Returns:
- Collections.EMPTY_MAP
-
get
Logs the get to debug, but always balks.- Parameters:
cacheName-key-container-- Returns:
- null always
-
remove
Description copied from interface:ICacheServiceRemoves the given key from the specified cache.- Specified by:
removein interfaceICacheService<K,V> - Parameters:
cacheName-key-
-
removeAll
Description copied from interface:ICacheServiceRemove all keys from the specified cache.- Specified by:
removeAllin interfaceICacheService<K,V> - Parameters:
cacheName-
-
dispose
Description copied from interface:ICacheServiceFrees the specified cache.- Specified by:
disposein interfaceICacheService<K,V> - Parameters:
cacheName-
-
release
Frees all caches.- Specified by:
releasein interfaceICacheService<K,V>
-