Package org.opencms.configuration
Enum Class CmsImageCacheConfiguration.RetentionMode
java.lang.Object
java.lang.Enum<CmsImageCacheConfiguration.RetentionMode>
org.opencms.configuration.CmsImageCacheConfiguration.RetentionMode
- All Implemented Interfaces:
Serializable,Comparable<CmsImageCacheConfiguration.RetentionMode>,Constable
- Enclosing class:
CmsImageCacheConfiguration
public static enum CmsImageCacheConfiguration.RetentionMode
extends Enum<CmsImageCacheConfiguration.RetentionMode>
Retention modes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCache retention is managed outside OpenCms.Entries expire based on their creation or replacement timestamp.Entries are renewed when successfully used within the renewal window. -
Method Summary
Modifier and TypeMethodDescriptionfromXmlValue(String value) Parses a retention mode.Returns the XML value.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
external
Cache retention is managed outside OpenCms. -
fixed
Entries expire based on their creation or replacement timestamp. -
renewOnUse
Entries are renewed when successfully used within the renewal window.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromXmlValue
Parses a retention mode.- Parameters:
value- the XML value- Returns:
- the retention mode
-
getXmlValue
Returns the XML value.- Returns:
- the XML value
-