Enum Class CacheEvent.EventType
- All Implemented Interfaces:
Serializable, Comparable<CacheEvent.EventType>, Constable
- Enclosing class:
CacheEvent<K,V>
Cache event types
缓存事件类型
- Since:
- JDK 25, opencode-base-cache V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheEvent.EventTypeReturns the enum constant of this class with the specified name.static CacheEvent.EventType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PUT
Entry added or updated 条目添加或更新 -
GET
Entry accessed 条目访问 -
REMOVE
Entry explicitly removed 条目显式移除 -
EXPIRE
Entry expired 条目过期 -
EVICT
Entry evicted due to size/weight limit 条目因容量/权重限制被淘汰 -
LOAD
Entry loaded from loader 条目从加载器加载 -
CLEAR
Cache cleared 缓存清除
-
-
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
-