|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.manager.cache.CacheManagerEhcache
public class CacheManagerEhcache
| Constructor Summary | |
|---|---|
CacheManagerEhcache(net.sf.ehcache.CacheManager cacheManager)
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected void |
configureCache(String cacheName)
Creates a cache if it doesn't already exist - if the cache has been defined in the configuration xml, then it will not be recreated. |
protected void |
configureCaches()
|
Object |
get(String key)
Retrieves cached object from the default cache. |
Object |
get(String cacheName,
Serializable key)
Retrieves cached object. |
List |
getAllKeys()
Retrieves all keys from the default cache. |
List |
getAllKeys(String cacheName)
Retrieve all keys from the cache. |
protected net.sf.ehcache.Cache |
getCache(String cacheName)
|
void |
put(String key,
Serializable obj)
Saves object to the default cache |
void |
put(String cacheName,
Serializable key,
Serializable obj)
Saves object to the cache. |
boolean |
remove(String key)
Removes cached object from the default cache |
boolean |
remove(String cacheName,
Serializable key)
Removes cached object from the cache. |
void |
removeAll()
Remove all the entries from the default cache. |
void |
removeAll(String cacheName)
Removes all the entries from the given cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheManagerEhcache(net.sf.ehcache.CacheManager cacheManager)
| Method Detail |
|---|
protected void configureCaches()
protected void configureCache(String cacheName)
cacheName - Name of the cache to ensure existsprotected net.sf.ehcache.Cache getCache(String cacheName)
public Object get(String key)
throws CacheManagerException,
NotInCacheException
CacheManager
get in interface CacheManagerkey - key of the object
CacheManagerException - if any problems arise during the operation
NotInCacheException - if the key does not exist
public void put(String key,
Serializable obj)
throws CacheManagerException
CacheManager
put in interface CacheManagerkey - key of the objectobj - actual object to be cached
CacheManagerException - if any problems arise during the operation
public boolean remove(String key)
throws CacheManagerException
CacheManager
remove in interface CacheManagerkey - key of the object
CacheManagerException - if any problems arise during the operation
public void removeAll()
throws CacheManagerException
CacheManager
removeAll in interface CacheManagerCacheManagerException - if any problems arise during the operation
public List getAllKeys()
throws CacheManagerException
CacheManager
getAllKeys in interface CacheManagerCacheManagerException - if any problems arise during the operation
public void put(String cacheName,
Serializable key,
Serializable obj)
throws CacheManagerException
CacheManager
put in interface CacheManagercacheName - cache namekey - key of the objectobj - actual object to be cached
CacheManagerException - if any problems arise during the operation
public Object get(String cacheName,
Serializable key)
throws CacheManagerException,
NotInCacheException
CacheManager
get in interface CacheManagercacheName - cache namekey - key of the object
CacheManagerException - if any problems arise during the operation
NotInCacheException - if the key does not exist
public boolean remove(String cacheName,
Serializable key)
throws CacheManagerException
CacheManager
remove in interface CacheManagercacheName - cache namekey - key of the object
CacheManagerException - if any problems arise during the operation
public void removeAll(String cacheName)
throws CacheManagerException
CacheManager
removeAll in interface CacheManagercacheName - cache name.
CacheManagerException - if any problems arise during the operation
public List getAllKeys(String cacheName)
throws CacheManagerException
CacheManager
getAllKeys in interface CacheManagercacheName - cache name.
CacheManagerException
public void afterPropertiesSet()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||