public class EhCacheProvider extends Object implements CacheProvider
| Constructor and Description |
|---|
EhCacheProvider() |
| Modifier and Type | Method and Description |
|---|---|
net.sf.ehcache.CacheManager |
getCacheManager() |
int |
getGroupsSizeLimit() |
void |
init(SettingsBean settingsBean,
CacheService cacheService) |
boolean |
isStatisticsEnabled() |
CacheImplementation<?,?> |
newCacheImplementation(String name) |
net.sf.ehcache.constructs.blocking.SelfPopulatingCache |
registerSelfPopulatingCache(String cacheName,
net.sf.ehcache.constructs.blocking.CacheEntryFactory factory)
This method register a SelfPopulatingCache in the CacheManager.
|
net.sf.ehcache.constructs.blocking.SelfPopulatingCache |
registerSelfPopulatingCache(String cacheName,
net.sf.ehcache.config.Searchable searchable,
net.sf.ehcache.constructs.blocking.CacheEntryFactory factory)
This method register a SelfPopulatingCache in the CacheManager.
|
void |
setConfigurationResource(org.springframework.core.io.Resource configurationResource) |
void |
setGroupsSizeLimit(int groupsSizeLimit) |
void |
setJmxActivated(boolean jmxActivated) |
void |
setStatisticsEnabled(boolean statisticsEnabled) |
void |
shutdown() |
public void init(SettingsBean settingsBean, CacheService cacheService) throws JahiaInitializationException
init in interface CacheProviderJahiaInitializationExceptionpublic void shutdown()
shutdown in interface CacheProviderpublic CacheImplementation<?,?> newCacheImplementation(String name)
newCacheImplementation in interface CacheProviderpublic net.sf.ehcache.CacheManager getCacheManager()
public int getGroupsSizeLimit()
public void setGroupsSizeLimit(int groupsSizeLimit)
public void setConfigurationResource(org.springframework.core.io.Resource configurationResource)
public void setJmxActivated(boolean jmxActivated)
public void setStatisticsEnabled(boolean statisticsEnabled)
public boolean isStatisticsEnabled()
public net.sf.ehcache.constructs.blocking.SelfPopulatingCache registerSelfPopulatingCache(String cacheName, net.sf.ehcache.constructs.blocking.CacheEntryFactory factory)
cacheName - the name of the cache to be registeredfactory - the CacheFactory to be used to fill the CacheEntrypublic net.sf.ehcache.constructs.blocking.SelfPopulatingCache registerSelfPopulatingCache(String cacheName, net.sf.ehcache.config.Searchable searchable, net.sf.ehcache.constructs.blocking.CacheEntryFactory factory)
cacheName - the name of the cache to be registeredsearchable - optional search configuration for the cachefactory - the CacheFactory to be used to fill the CacheEntryCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.