Package io.micronaut.eclipsestore.cache
Class CacheConfigurationProperties
java.lang.Object
io.micronaut.eclipsestore.cache.CacheConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,CacheConfiguration
@ConfigurationProperties("eclipsestore.cache")
public class CacheConfigurationProperties
extends Object
implements CacheConfiguration
Configuration for EclipseStore Cache module.
CacheConfiguration
and CacheConfigurationProperties
exist to generate configuration reference documentation automatically.
It uses a different class because EclipseStoreCacheConfigurationProperties
is a EachProperty
implementation.- Since:
- 1.3.0
- Author:
- Sergio del Amo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
Whether EclipseStore Cache module is enabled. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setEnabled
(boolean enabled) Whether EclipseStore Cache module is enabled.
-
Field Details
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDWhether EclipseStore Cache module is enabled.- See Also:
-
-
Constructor Details
-
CacheConfigurationProperties
public CacheConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) Whether EclipseStore Cache module is enabled. Default Value: true- Parameters:
enabled
- Whether this cache is enabled.
-