public interface ConfigurationPropertyCaching
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the cache and force it to be reloaded on next access.
|
void |
disable()
Disable caching.
|
void |
enable()
Enable caching with an unlimited time-to-live.
|
static ConfigurationPropertyCaching |
get(org.springframework.core.env.Environment environment)
Get for all configuration property sources in the environment.
|
static ConfigurationPropertyCaching |
get(org.springframework.core.env.Environment environment,
java.lang.Object underlyingSource)
Get for a specific configuration property source in the environment.
|
static ConfigurationPropertyCaching |
get(java.lang.Iterable<ConfigurationPropertySource> sources)
Get for all specified configuration property sources.
|
static ConfigurationPropertyCaching |
get(java.lang.Iterable<ConfigurationPropertySource> sources,
java.lang.Object underlyingSource)
Get for a specific configuration property source in the specified configuration
property sources.
|
void |
setTimeToLive(java.time.Duration timeToLive)
Set amount of time that an item can live in the cache.
|
void enable()
void disable()
void setTimeToLive(java.time.Duration timeToLive)
timeToLive - the time to live value.void clear()
static ConfigurationPropertyCaching get(org.springframework.core.env.Environment environment)
environment - the spring environmentstatic ConfigurationPropertyCaching get(org.springframework.core.env.Environment environment, java.lang.Object underlyingSource)
environment - the spring environmentunderlyingSource - the
underlying source that
must matchstatic ConfigurationPropertyCaching get(java.lang.Iterable<ConfigurationPropertySource> sources)
sources - the configuration property sourcesstatic ConfigurationPropertyCaching get(java.lang.Iterable<ConfigurationPropertySource> sources, java.lang.Object underlyingSource)
sources - the configuration property sourcesunderlyingSource - the
underlying source that
must match