|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheManager
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.String key)
Retrieves cached object from the default cache. |
java.lang.Object |
get(java.lang.String cacheName,
java.io.Serializable key)
Retrieves cached object. |
java.util.List |
getAllKeys()
Retrieves all keys from the default cache. |
java.util.List |
getAllKeys(java.lang.String cacheName)
Retrieve all keys from the cache. |
void |
put(java.lang.String key,
java.io.Serializable obj)
Saves object to the default cache |
void |
put(java.lang.String cacheName,
java.io.Serializable key,
java.io.Serializable obj)
Saves object to the cache. |
boolean |
remove(java.lang.String key)
Removes cached object from the default cache |
boolean |
remove(java.lang.String cacheName,
java.io.Serializable key)
Removes cached object from the cache. |
void |
removeAll()
Remove all the entries from the default cache. |
void |
removeAll(java.lang.String cacheName)
Removes all the entries from the given cache. |
| Method Detail |
|---|
void put(java.lang.String cacheName,
java.io.Serializable key,
java.io.Serializable obj)
throws CacheManagerException
cacheName - cache namekey - key of the objectobj - actual object to be cached
CacheManagerException - if any problems arise during the operation
java.lang.Object get(java.lang.String cacheName,
java.io.Serializable key)
throws CacheManagerException,
NotInCacheException
cacheName - cache namekey - key of the object
CacheManagerException - if any problems arise during the operation
NotInCacheException - if the key does not exist
boolean remove(java.lang.String cacheName,
java.io.Serializable key)
throws CacheManagerException
cacheName - cache namekey - key of the object
CacheManagerException - if any problems arise during the operation
void removeAll(java.lang.String cacheName)
throws CacheManagerException
cacheName - cache name.
CacheManagerException - if any problems arise during the operation
java.util.List getAllKeys(java.lang.String cacheName)
throws CacheManagerException
cacheName - cache name.
CacheManagerException
void put(java.lang.String key,
java.io.Serializable obj)
throws CacheManagerException
key - key of the objectobj - actual object to be cached
CacheManagerException - if any problems arise during the operation
java.lang.Object get(java.lang.String key)
throws CacheManagerException,
NotInCacheException
key - key of the object
CacheManagerException - if any problems arise during the operation
NotInCacheException - if the key does not exist
boolean remove(java.lang.String key)
throws CacheManagerException
key - key of the object
CacheManagerException - if any problems arise during the operation
void removeAll()
throws CacheManagerException
CacheManagerException - if any problems arise during the operation
java.util.List getAllKeys()
throws CacheManagerException
CacheManagerException - if any problems arise during the operation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||