EhCache3Factory
instead.@Deprecated public class EhCacheFactory extends Object implements CacheFactory
Modifier and Type | Field and Description |
---|---|
protected static String |
CACHE_MANAGER_ID_INVALID_CHARS
Deprecated.
|
protected static String |
MAGNOLIA_PROPERTY_CACHE_MANAGER_ID
Deprecated.
|
DEFAULT_CACHE_NAME
Constructor and Description |
---|
EhCacheFactory(CacheMonitor cacheMonitor)
|
EhCacheFactory(CacheMonitor cacheMonitor,
CacheModule cacheModule,
info.magnolia.init.MagnoliaInitPaths magnoliaInitPaths)
|
EhCacheFactory(CacheMonitor cacheMonitor,
CacheModule cacheModule,
info.magnolia.init.MagnoliaInitPaths magnoliaInitPaths,
info.magnolia.init.MagnoliaConfigurationProperties magnoliaConfigurationProperties)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createCache(String name)
Deprecated.
|
protected String |
createCacheManagerIdentifier()
Deprecated.
|
protected net.sf.ehcache.constructs.blocking.BlockingCache |
decorateAndSubstitute(net.sf.ehcache.Ehcache ehcache)
Deprecated.
|
int |
getBlockingTimeout()
Deprecated.
|
Cache |
getCache(String name)
Deprecated.
Retrieves a named cache.
|
List |
getCacheNames()
Deprecated.
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()
Deprecated.
These are cache configurations.
|
EhCacheConfiguration |
getDefaultCacheConfiguration()
Deprecated.
|
String |
getDiskStorePath()
Deprecated.
|
net.sf.ehcache.CacheManager |
getWrappedCacheManager()
Deprecated.
|
void |
setBlockingTimeout(int blockingTimeout)
Deprecated.
|
void |
setCaches(Map<String,EhCacheConfiguration> caches)
Deprecated.
|
void |
setDefaultCacheConfiguration(EhCacheConfiguration defaultCacheConfiguration)
Deprecated.
|
void |
setDiskStorePath(String diskStorePath)
Deprecated.
|
protected boolean |
shouldRegisterCacheManager()
Deprecated.
|
void |
start(boolean isRestart)
Deprecated.
|
void |
stop(boolean isRestart)
Deprecated.
|
protected EhCacheWrapper |
wrap(String name,
net.sf.ehcache.Ehcache ehcache)
Deprecated.
|
protected static final String CACHE_MANAGER_ID_INVALID_CHARS
protected static final String MAGNOLIA_PROPERTY_CACHE_MANAGER_ID
@Inject public EhCacheFactory(CacheMonitor cacheMonitor, CacheModule cacheModule, info.magnolia.init.MagnoliaInitPaths magnoliaInitPaths, info.magnolia.init.MagnoliaConfigurationProperties magnoliaConfigurationProperties)
@Deprecated public EhCacheFactory(CacheMonitor cacheMonitor, CacheModule cacheModule, info.magnolia.init.MagnoliaInitPaths magnoliaInitPaths)
public EhCacheFactory(CacheMonitor cacheMonitor)
@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
protected boolean shouldRegisterCacheManager()
protected String createCacheManagerIdentifier()
public void stop(boolean isRestart)
stop
in interface CacheFactory
public net.sf.ehcache.CacheManager getWrappedCacheManager()
Copyright © 2017 Magnolia International Ltd.. All rights reserved.