public interface CacheConfigurationProvider
Modifier and Type | Method and Description |
---|---|
<K,V> void |
augmentConfiguration(CacheManager mgr,
Cache2kConfiguration<K,V> cfg)
Called when
Cache2kBuilder.build() was called before the configuration is used
to create the cache. |
Cache2kConfiguration |
getDefaultConfiguration(CacheManager mgr)
A new configuration instance for mutation with default values.
|
String |
getDefaultManagerName(ClassLoader classLoader)
Name for the default manager for the given class loader.
|
String getDefaultManagerName(ClassLoader classLoader)
Cache2kConfiguration getDefaultConfiguration(CacheManager mgr)
mgr
- Manager the new cache will live in<K,V> void augmentConfiguration(CacheManager mgr, Cache2kConfiguration<K,V> cfg)
Cache2kBuilder.build()
was called before the configuration is used
to create the cache. If no name was specified in the application, the name in the
configuration is null.mgr
- Manager the new cache will live incfg
- the cache configurationcache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.