public class EhCacheFactory extends Object implements CacheFactory
DEFAULT_CACHE_NAME
Constructor and Description |
---|
EhCacheFactory(CacheMonitor cacheMonitor)
Deprecated.
|
EhCacheFactory(CacheMonitor cacheMonitor,
CacheModule cacheModule,
info.magnolia.init.MagnoliaInitPaths magnoliaInitPaths) |
Modifier and Type | Method and Description |
---|---|
protected void |
createCache(String name) |
protected net.sf.ehcache.constructs.blocking.BlockingCache |
decorateAndSubstitute(net.sf.ehcache.Ehcache ehcache) |
int |
getBlockingTimeout() |
Cache |
getCache(String name)
Retrieves a named cache.
|
List |
getCacheNames()
Caches currently known by the underlying CacheManager (which includes all configured caches as well as those created on-demand based on the default config).
|
Map<String,EhCacheConfiguration> |
getCaches()
These are cache configurations.
|
EhCacheConfiguration |
getDefaultCacheConfiguration()
Deprecated.
|
String |
getDiskStorePath() |
net.sf.ehcache.CacheManager |
getWrappedCacheManager() |
void |
setBlockingTimeout(int blockingTimeout) |
void |
setCaches(Map<String,EhCacheConfiguration> caches) |
void |
setDefaultCacheConfiguration(EhCacheConfiguration defaultCacheConfiguration)
Deprecated.
|
void |
setDiskStorePath(String diskStorePath) |
void |
start(boolean isRestart) |
void |
stop(boolean isRestart) |
protected EhCacheWrapper |
wrap(String name,
net.sf.ehcache.Ehcache ehcache) |
@Inject public EhCacheFactory(CacheMonitor cacheMonitor, CacheModule cacheModule, info.magnolia.init.MagnoliaInitPaths magnoliaInitPaths)
public EhCacheFactory(CacheMonitor cacheMonitor)
EhCacheFactory(info.magnolia.module.cache.mbean.CacheMonitor, info.magnolia.module.cache.CacheModule, info.magnolia.init.MagnoliaInitPaths)
instead.@Deprecated public EhCacheConfiguration getDefaultCacheConfiguration()
@Deprecated public void setDefaultCacheConfiguration(EhCacheConfiguration defaultCacheConfiguration)
public Map<String,EhCacheConfiguration> getCaches()
public void setCaches(Map<String,EhCacheConfiguration> caches)
public String getDiskStorePath()
public void setDiskStorePath(String diskStorePath)
public int getBlockingTimeout()
public void setBlockingTimeout(int blockingTimeout)
public List getCacheNames()
getCacheNames
in interface CacheFactory
public Cache getCache(String name)
CacheFactory
getCache
in interface CacheFactory
protected void createCache(String name)
protected net.sf.ehcache.constructs.blocking.BlockingCache decorateAndSubstitute(net.sf.ehcache.Ehcache ehcache)
protected EhCacheWrapper wrap(String name, net.sf.ehcache.Ehcache ehcache)
public void start(boolean isRestart)
start
in interface CacheFactory
public void stop(boolean isRestart)
stop
in interface CacheFactory
public net.sf.ehcache.CacheManager getWrappedCacheManager()
Copyright © 2015 Magnolia International Ltd.. All rights reserved.