public interface ICacheServiceNonLocal<K,V> extends Remote, ICacheService<K,V>
TODO consider not extending ICacheService
Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
get(String cacheName,
K key,
long requesterId)
Returns a cache bean from the specified cache; or null if the key does not exist.
|
Set<K> |
getKeySet(String cacheName)
Get a set of the keys for all elements in the cache.
|
Map<K,ICacheElement<K,V>> |
getMatching(String cacheName,
String pattern,
long requesterId)
Gets multiple items from the cache matching the pattern.
|
Map<K,ICacheElement<K,V>> |
getMultiple(String cacheName,
Set<K> keys,
long requesterId)
Gets multiple items from the cache based on the given set of keys.
|
void |
remove(String cacheName,
K key,
long requesterId)
Removes the given key from the specified cache.
|
void |
removeAll(String cacheName,
long requesterId)
Remove all keys from the specified cache.
|
void |
update(ICacheElement<K,V> item,
long requesterId)
Puts a cache item to the cache.
|
dispose, get, getMatching, getMultiple, release, remove, removeAll, update
void update(ICacheElement<K,V> item, long requesterId) throws IOException
item
- requesterId
- IOException
void remove(String cacheName, K key, long requesterId) throws IOException
cacheName
- key
- requesterId
- IOException
void removeAll(String cacheName, long requesterId) throws IOException
cacheName
- requesterId
- IOException
ICacheElement<K,V> get(String cacheName, K key, long requesterId) throws IOException
Adding the requester id, allows the cache to determine the source of the get.
cacheName
- key
- requesterId
- IOException
Map<K,ICacheElement<K,V>> getMultiple(String cacheName, Set<K> keys, long requesterId) throws IOException
cacheName
- keys
- requesterId
- IOException
Map<K,ICacheElement<K,V>> getMatching(String cacheName, String pattern, long requesterId) throws IOException
cacheName
- pattern
- requesterId
- IOException
Set<K> getKeySet(String cacheName) throws IOException
cacheName
- the name of the cacheIOException
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.