public class RefreshAheadCacheFactory extends CacheDecoratorFactory
RefreshAheadCache
instancesDASH
Constructor and Description |
---|
RefreshAheadCacheFactory() |
Modifier and Type | Method and Description |
---|---|
Ehcache |
createDecoratedEhcache(Ehcache cache,
Properties properties)
Creates a decorated
Ehcache using the properties specified for configuring the decorator. |
Ehcache |
createDefaultDecoratedEhcache(Ehcache cache,
Properties properties)
This method is called when the factory is specified for the defaultCache in the config.
|
generateDefaultDecoratedCacheName
public Ehcache createDecoratedEhcache(Ehcache cache, Properties properties)
CacheDecoratorFactory
Ehcache
using the properties specified for configuring the decorator.
If the returned decorated cache has the same name as the underlying cache, then the original cache will be replaced by this new decorated cache in the CacheManager.
createDecoratedEhcache
in class CacheDecoratorFactory
cache
- a reference to the owning cacheproperties
- implementation specific properties configured as delimiter
separated name value pairs in ehcache.xmlpublic Ehcache createDefaultDecoratedEhcache(Ehcache cache, Properties properties)
CacheDecoratorFactory
Ehcache
using the properties specified.
If the returned decorated cache has the same name as the underlying cache, then the original cache will be replaced by this new decorated cache in the CacheManager.
createDefaultDecoratedEhcache
in class CacheDecoratorFactory
cache
- a reference to the owning cacheproperties
- implementation specific properties configured as delimiter
separated name value pairs in ehcache.xmlCopyright 2001-2021, Terracotta, Inc.