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.ObjectA 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.Configcustomized(package private) com.typesafe.config.Configmerged(package private) com.typesafe.config.Configroot
-
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 voidaddEagerExpiration()Adds the Caffeine eager expiration settings.voidaddExecutor()Adds the executor settings.private voidaddKeyValueTypes()Adds the key and value class types.voidaddLazyExpiration()Adds the JCache specification's lazy expiration settings.private voidaddListeners()Adds the entry listeners settings.private voidaddMaximum()Adds the maximum size and weight bounding settings.private voidaddMonitoring()Adds the monitoring settings.private voidaddReadThrough()Adds the read through settings.voidaddRefresh()Adds the Caffeine refresh settings.voidaddScheduler()Adds the scheduler settings.private voidaddStoreByValue()Adds the store-by-value settings.private voidaddWriteThrough()Adds the write through settings.(package private) CaffeineConfiguration<K,V>configure()Returns a configuration built from the external settings.private @Nullable javax.cache.expiry.DurationgetDurationFor(java.lang.String path)Returns the duration for the expiration time.private booleanisSet(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).
-
-