Interface ICacheService<K,V> 
- All Known Subinterfaces:
- ICacheServiceNonLocal<K,,- V> - IRemoteCacheServer<K,,- V> - IRemoteHttpCacheClient<K,- V> 
- All Known Implementing Classes:
- AbstractRemoteCacheService,- LateralTCPService,- RemoteCacheServer,- RemoteHttpCacheClient,- RemoteHttpCacheService,- ZombieCacheService,- ZombieCacheServiceNonLocal
public interface ICacheService<K,V> 
Used to retrieve and update the cache.
 
Note: server which implements this interface provides a local cache service, whereas server which implements IRmiCacheService provides a remote cache service.
- 
Method SummaryModifier and TypeMethodDescriptionvoidFrees the specified cache.Returns a cache bean from the specified cache; or null if the key does not exist.Map<K,ICacheElement<K, V>> getMatching(String cacheName, String pattern) Gets multiple items from the cache matching the pattern.Map<K,ICacheElement<K, V>> getMultiple(String cacheName, Set<K> keys) Gets multiple items from the cache based on the given set of keys.voidrelease()Frees all caches.voidRemoves the given key from the specified cache.voidRemove all keys from the specified cache.voidupdate(ICacheElement<K, V> item) Puts a cache item to the cache.
- 
Method Details- 
updatePuts a cache item to the cache.- Parameters:
- item-
- Throws:
- ObjectExistsException
- IOException
 
- 
getReturns a cache bean from the specified cache; or null if the key does not exist.- Parameters:
- cacheName-
- key-
- Returns:
- the ICacheElement<K, V> or null if not found
- Throws:
- ObjectNotFoundException
- IOException
 
- 
getMultipleMap<K,ICacheElement<K, getMultipleV>> (String cacheName, Set<K> keys) throws ObjectNotFoundException, IOException Gets multiple items from the cache based on the given set of keys.- Parameters:
- cacheName-
- 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
- Throws:
- ObjectNotFoundException
- IOException
 
- 
getMatchingGets multiple items from the cache matching the pattern.- Parameters:
- cacheName-
- pattern-
- Returns:
- a map of K key to ICacheElement<K, V> element, or an empty map if there is no data in cache matching the pattern.
- Throws:
- IOException
 
- 
removeRemoves the given key from the specified cache.- Parameters:
- cacheName-
- key-
- Throws:
- IOException
 
- 
removeAllRemove all keys from the specified cache.- Parameters:
- cacheName-
- Throws:
- IOException
 
- 
disposeFrees the specified cache.- Parameters:
- cacheName-
- Throws:
- IOException
 
- 
releaseFrees all caches.- Throws:
- IOException
 
 
-