Enum Class MultiLevelCache.InvalidationPolicy
java.lang.Object
java.lang.Enum<MultiLevelCache.InvalidationPolicy>
cloud.opencode.base.cache.multilevel.MultiLevelCache.InvalidationPolicy
- All Implemented Interfaces:
Serializable, Comparable<MultiLevelCache.InvalidationPolicy>, Constable
- Enclosing class:
MultiLevelCache<K,V>
public static enum MultiLevelCache.InvalidationPolicy
extends Enum<MultiLevelCache.InvalidationPolicy>
Invalidation 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 ConstantDescriptionCascade invalidation down through levelsInvalidate from all levelsInvalidate only from first level -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static MultiLevelCache.InvalidationPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALIDATE_ALL
Invalidate from all levels -
INVALIDATE_FIRST
Invalidate only from first level -
CASCADE_DOWN
Cascade invalidation down through levels
-
-
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
-