Enum Class ExpiryConfiguration.ExpiryType
java.lang.Object
java.lang.Enum<ExpiryConfiguration.ExpiryType>
io.leandev.appfuse.cache.config.ExpiryConfiguration.ExpiryType
- All Implemented Interfaces:
Serializable, Comparable<ExpiryConfiguration.ExpiryType>, Constable
- Enclosing class:
ExpiryConfiguration
過期策略類型
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription永不過期Time-to-Idle: 從最後存取起算的閒置時間Time-to-Live: 從寫入起算的存活時間 -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ExpiryConfiguration.ExpiryType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TIME_TO_LIVE
Time-to-Live: 從寫入起算的存活時間 -
TIME_TO_IDLE
Time-to-Idle: 從最後存取起算的閒置時間 -
NO_EXPIRATION
永不過期
-
-
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
-