|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICacheService
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 Summary | |
---|---|
void |
dispose(java.lang.String cacheName)
Frees the specified cache. |
ICacheElement |
get(java.lang.String cacheName,
java.io.Serializable key)
Returns a cache bean from the specified cache; or null if the key does not exist. |
java.util.Map |
getMatching(java.lang.String cacheName,
java.lang.String pattern)
Gets multiple items from the cache matching the pattern. |
java.util.Map |
getMultiple(java.lang.String cacheName,
java.util.Set keys)
Gets multiple items from the cache based on the given set of keys. |
void |
release()
Frees all caches. |
void |
remove(java.lang.String cacheName,
java.io.Serializable key)
Removes the given key from the specified cache. |
void |
removeAll(java.lang.String cacheName)
Remove all keys from the sepcified cache. |
void |
update(ICacheElement item)
Puts a cache item to the cache. |
Method Detail |
---|
void update(ICacheElement item) throws ObjectExistsException, java.io.IOException
item
-
ObjectExistsException
java.io.IOException
ICacheElement get(java.lang.String cacheName, java.io.Serializable key) throws ObjectNotFoundException, java.io.IOException
cacheName
- key
-
ObjectNotFoundException
java.io.IOException
java.util.Map getMultiple(java.lang.String cacheName, java.util.Set keys) throws ObjectNotFoundException, java.io.IOException
cacheName
- keys
-
ObjectNotFoundException
java.io.IOException
java.util.Map getMatching(java.lang.String cacheName, java.lang.String pattern) throws java.io.IOException
cacheName
- pattern
-
java.io.IOException
void remove(java.lang.String cacheName, java.io.Serializable key) throws java.io.IOException
cacheName
- key
-
java.io.IOException
void removeAll(java.lang.String cacheName) throws java.io.IOException
cacheName
-
java.io.IOException
void dispose(java.lang.String cacheName) throws java.io.IOException
cacheName
-
java.io.IOException
void release() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |