Class TypesafeConfigurator.Configurator<K,V>
- java.lang.Object
-
- com.github.benmanes.caffeine.jcache.configuration.TypesafeConfigurator.Configurator<K,V>
-
- Enclosing class:
- TypesafeConfigurator
private static final class TypesafeConfigurator.Configurator<K,V> extends java.lang.Object
A one-shot builder for creating a configuration instance.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) CaffeineConfiguration<K,V>
configuration
(package private) com.typesafe.config.Config
customized
(package private) com.typesafe.config.Config
merged
(package private) com.typesafe.config.Config
root
-
Constructor Summary
Constructors Constructor Description Configurator(com.typesafe.config.Config config, java.lang.String cacheName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEagerExpiration()
Adds the Caffeine eager expiration settings.void
addExecutor()
Adds the executor settings.private void
addKeyValueTypes()
Adds the key and value class types.void
addLazyExpiration()
Adds the JCache specification's lazy expiration settings.private void
addListeners()
Adds the entry listeners settings.private void
addMaximum()
Adds the maximum size and weight bounding settings.private void
addMonitoring()
Adds the monitoring settings.private void
addReadThrough()
Adds the read through settings.void
addRefresh()
Adds the Caffeine refresh settings.void
addScheduler()
Adds the scheduler settings.private void
addStoreByValue()
Adds the store-by-value settings.private void
addWriteThrough()
Adds the write through settings.(package private) CaffeineConfiguration<K,V>
configure()
Returns a configuration built from the external settings.private @Nullable javax.cache.expiry.Duration
getDurationFor(java.lang.String path)
Returns the duration for the expiration time.private boolean
isSet(java.lang.String path)
Returns if the value is present (not unset by the cache configuration).
-
-
-
Field Detail
-
configuration
final CaffeineConfiguration<K,V> configuration
-
customized
final com.typesafe.config.Config customized
-
merged
final com.typesafe.config.Config merged
-
root
final com.typesafe.config.Config root
-
-
Method Detail
-
configure
CaffeineConfiguration<K,V> configure()
Returns a configuration built from the external settings.
-
addKeyValueTypes
private void addKeyValueTypes()
Adds the key and value class types.
-
addStoreByValue
private void addStoreByValue()
Adds the store-by-value settings.
-
addExecutor
public void addExecutor()
Adds the executor settings.
-
addScheduler
public void addScheduler()
Adds the scheduler settings.
-
addListeners
private void addListeners()
Adds the entry listeners settings.
-
addReadThrough
private void addReadThrough()
Adds the read through settings.
-
addWriteThrough
private void addWriteThrough()
Adds the write through settings.
-
addMonitoring
private void addMonitoring()
Adds the monitoring settings.
-
addLazyExpiration
public void addLazyExpiration()
Adds the JCache specification's lazy expiration settings.
-
getDurationFor
private @Nullable javax.cache.expiry.Duration getDurationFor(java.lang.String path)
Returns the duration for the expiration time.
-
addEagerExpiration
public void addEagerExpiration()
Adds the Caffeine eager expiration settings.
-
addRefresh
public void addRefresh()
Adds the Caffeine refresh settings.
-
addMaximum
private void addMaximum()
Adds the maximum size and weight bounding settings.
-
isSet
private boolean isSet(java.lang.String path)
Returns if the value is present (not unset by the cache configuration).
-
-