Class TypesafeConfigurator.Configurator<K,V>
java.lang.Object
com.github.benmanes.caffeine.jcache.configuration.TypesafeConfigurator.Configurator<K,V>
- Enclosing class:
TypesafeConfigurator
A one-shot builder for creating a configuration instance.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final CaffeineConfiguration<K, V> (package private) final com.typesafe.config.Config(package private) final com.typesafe.config.Config(package private) final com.typesafe.config.Config -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the Caffeine eager expiration settings.voidAdds the executor settings.private voidAdds the key and value class types.voidAdds the JCache specification's lazy expiration settings.private voidAdds the entry listeners settings.private voidAdds the maximum size and weight bounding settings.private voidAdds the monitoring settings.private voidAdds the read through settings.voidAdds the Caffeine refresh settings.voidAdds the scheduler settings.private voidAdds the store-by-value settings.private voidAdds the write through settings.(package private) CaffeineConfiguration<K, V> Returns a configuration built from the external settings.private @Nullable javax.cache.expiry.DurationgetDurationFor(String path) Returns the duration for the expiration time.private booleanReturns if the value is present (not unset by the cache configuration).
-
Field Details
-
configuration
-
customized
final com.typesafe.config.Config customized -
merged
final com.typesafe.config.Config merged -
root
final com.typesafe.config.Config root
-
-
Constructor Details
-
Configurator
Configurator(com.typesafe.config.Config config, String cacheName)
-
-
Method Details
-
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
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
Returns if the value is present (not unset by the cache configuration).
-