Enum Class MultiLevelCache.WritePolicy
java.lang.Object
java.lang.Enum<MultiLevelCache.WritePolicy>
cloud.opencode.base.cache.multilevel.MultiLevelCache.WritePolicy
- All Implemented Interfaces:
Serializable, Comparable<MultiLevelCache.WritePolicy>, Constable
- Enclosing class:
MultiLevelCache<K,V>
Write policy enumeration
写策略枚举
- Since:
- JDK 25, opencode-base-cache V2.0.5
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWrite to all levelsWrite only to first levelWrite through all levels synchronously -
Method Summary
Modifier and TypeMethodDescriptionstatic MultiLevelCache.WritePolicyReturns the enum constant of this class with the specified name.static MultiLevelCache.WritePolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WRITE_ALL
Write to all levels -
WRITE_FIRST
Write only to first level -
WRITE_THROUGH
Write through all levels synchronously
-
-
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
-