Enum Class ExpirationPolicy
- All Implemented Interfaces:
Serializable,Comparable<ExpirationPolicy>,Constable
过期策略
- Version:
- 0.0.1
- Author:
- scx567888
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription回溯补偿 针对单次任务 可以理解为立即执行 和 IMMEDIATE_COMPENSATION 相同 针对多次任务 会计算未执行的次数 然后立即执行 之后按照正常调度时间点处理回溯忽略 针对单次任务 可以理解为不执行 针对多次任务 会计算距离当前最近的调度时间点 之前的跳过 (runCount 会增加) 可以理解为之前的任务执行了 (实际并没有,被忽略了) 但是 runCount 还是会增加立即补偿 针对单次任务 可以理解为立即执行 针对多次任务 会立即执行一次 之后按照正常调度时间点处理立即忽略 针对单次任务 可以理解为不执行 针对多次任务 会计算距离当前最近的调度时间点 之前的跳过 (runCount 不会增加) -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpirationPolicyReturns the enum constant of this class with the specified name.static ExpirationPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IMMEDIATE_IGNORE
立即忽略 针对单次任务 可以理解为不执行 针对多次任务 会计算距离当前最近的调度时间点 之前的跳过 (runCount 不会增加) -
BACKTRACKING_IGNORE
回溯忽略 针对单次任务 可以理解为不执行 针对多次任务 会计算距离当前最近的调度时间点 之前的跳过 (runCount 会增加) 可以理解为之前的任务执行了 (实际并没有,被忽略了) 但是 runCount 还是会增加 -
IMMEDIATE_COMPENSATION
立即补偿 针对单次任务 可以理解为立即执行 针对多次任务 会立即执行一次 之后按照正常调度时间点处理 -
BACKTRACKING_COMPENSATION
回溯补偿 针对单次任务 可以理解为立即执行 和 IMMEDIATE_COMPENSATION 相同 针对多次任务 会计算未执行的次数 然后立即执行 之后按照正常调度时间点处理
-
-
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
-