|
||||||||||
| 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(java.lang.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()
|
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. |
protected net.sf.ehcache.Cache |
getCache(java.lang.String cacheName)
|
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. |
| 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(java.lang.String cacheName)
cacheName - Name of the cache to ensure existsprotected net.sf.ehcache.Cache getCache(java.lang.String cacheName)
public java.lang.Object get(java.lang.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(java.lang.String key,
java.io.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(java.lang.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 java.util.List getAllKeys()
throws CacheManagerException
CacheManager
getAllKeys in interface CacheManagerCacheManagerException - if any problems arise during the operation
public void put(java.lang.String cacheName,
java.io.Serializable key,
java.io.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 java.lang.Object get(java.lang.String cacheName,
java.io.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(java.lang.String cacheName,
java.io.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(java.lang.String cacheName)
throws CacheManagerException
CacheManager
removeAll in interface CacheManagercacheName - cache name.
CacheManagerException - if any problems arise during the operation
public java.util.List getAllKeys(java.lang.String cacheName)
throws CacheManagerException
CacheManager
getAllKeys in interface CacheManagercacheName - cache name.
CacheManagerException
public void afterPropertiesSet()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||