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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Frees 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.void
put
(ICacheElement<K, V> item) void
release()
Frees all caches.void
Removes the given key from the specified cache.void
Remove all keys from the specified cache.void
update
(ICacheElement<K, V> item) Does nothing.
-
Constructor Details
-
ZombieCacheService
public ZombieCacheService()
-
-
Method Details
-
put
- Parameters:
item
-
-
update
Does nothing.- Specified by:
update
in interfaceICacheService<K,
V> - Parameters:
item
-
-
get
Description copied from interface:ICacheService
Returns a cache bean from the specified cache; or null if the key does not exist.- Specified by:
get
in 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:
getMultiple
in interfaceICacheService<K,
V> - Parameters:
cacheName
-keys
-- Returns:
- Collections.EMPTY_MAP
-
getMatching
Returns an empty map. Zombies have no internal data.- Specified by:
getMatching
in 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:ICacheService
Removes the given key from the specified cache.- Specified by:
remove
in interfaceICacheService<K,
V> - Parameters:
cacheName
-key
-
-
removeAll
Description copied from interface:ICacheService
Remove all keys from the specified cache.- Specified by:
removeAll
in interfaceICacheService<K,
V> - Parameters:
cacheName
-
-
dispose
Description copied from interface:ICacheService
Frees the specified cache.- Specified by:
dispose
in interfaceICacheService<K,
V> - Parameters:
cacheName
-
-
release
Frees all caches.- Specified by:
release
in interfaceICacheService<K,
V>
-