public abstract class CommonEhCacheCacheService extends Object implements org.bonitasoft.engine.cache.CommonCacheService
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,net.sf.ehcache.config.CacheConfiguration> |
cacheConfigurations |
protected net.sf.ehcache.CacheManager |
cacheManager |
protected org.bonitasoft.engine.log.technical.TechnicalLoggerService |
logger |
protected org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor |
sessionAccessor |
| Constructor and Description |
|---|
CommonEhCacheCacheService(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
org.bonitasoft.engine.cache.CacheConfigurations cacheConfigurations) |
CommonEhCacheCacheService(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
org.bonitasoft.engine.cache.CacheConfigurations cacheConfigurations,
URL configFile) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
clear(String cacheName) |
void |
clearAll() |
protected net.sf.ehcache.Cache |
createCache(String cacheName,
String internalCacheName) |
void |
destroy() |
Object |
get(String cacheName,
Object key) |
int |
getCacheSize(String cacheName) |
protected net.sf.ehcache.config.CacheConfiguration |
getEhCacheConfiguration(org.bonitasoft.engine.cache.CacheConfiguration cacheConfig) |
protected abstract String |
getKeyFromCacheName(String cacheName) |
List<Object> |
getKeys(String cacheName) |
boolean |
remove(String cacheName,
Object key) |
void |
store(String cacheName,
Serializable key,
Object value) |
protected final net.sf.ehcache.CacheManager cacheManager
protected final org.bonitasoft.engine.log.technical.TechnicalLoggerService logger
protected final org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor
public CommonEhCacheCacheService(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
org.bonitasoft.engine.cache.CacheConfigurations cacheConfigurations)
public CommonEhCacheCacheService(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
org.bonitasoft.engine.cache.CacheConfigurations cacheConfigurations,
URL configFile)
protected net.sf.ehcache.config.CacheConfiguration getEhCacheConfiguration(org.bonitasoft.engine.cache.CacheConfiguration cacheConfig)
protected net.sf.ehcache.Cache createCache(String cacheName, String internalCacheName) throws org.bonitasoft.engine.cache.CacheException
org.bonitasoft.engine.cache.CacheExceptionpublic void store(String cacheName, Serializable key, Object value) throws org.bonitasoft.engine.cache.CacheException
store in interface org.bonitasoft.engine.cache.CommonCacheServiceorg.bonitasoft.engine.cache.CacheExceptionprotected abstract String getKeyFromCacheName(String cacheName) throws org.bonitasoft.engine.cache.CacheException
org.bonitasoft.engine.cache.CacheExceptionpublic Object get(String cacheName, Object key) throws org.bonitasoft.engine.cache.CacheException
get in interface org.bonitasoft.engine.cache.CommonCacheServiceorg.bonitasoft.engine.cache.CacheExceptionpublic boolean clear(String cacheName) throws org.bonitasoft.engine.cache.CacheException
clear in interface org.bonitasoft.engine.cache.CommonCacheServiceorg.bonitasoft.engine.cache.CacheExceptionpublic int getCacheSize(String cacheName) throws org.bonitasoft.engine.cache.CacheException
getCacheSize in interface org.bonitasoft.engine.cache.CommonCacheServiceorg.bonitasoft.engine.cache.CacheExceptionpublic void clearAll()
throws org.bonitasoft.engine.cache.CacheException
clearAll in interface org.bonitasoft.engine.cache.CommonCacheServiceorg.bonitasoft.engine.cache.CacheExceptionpublic boolean remove(String cacheName, Object key) throws org.bonitasoft.engine.cache.CacheException
remove in interface org.bonitasoft.engine.cache.CommonCacheServiceorg.bonitasoft.engine.cache.CacheExceptionpublic List<Object> getKeys(String cacheName) throws org.bonitasoft.engine.cache.CacheException
getKeys in interface org.bonitasoft.engine.cache.CommonCacheServiceorg.bonitasoft.engine.cache.CacheExceptionpublic void destroy()
Copyright © 2013 BonitaSoft. All Rights Reserved.