Enum Class FilterAction
- All Implemented Interfaces:
Serializable, Comparable<FilterAction>, Constable
Filter Action Enum - Defines Possible Filter Decisions
过滤器动作枚举 - 定义可能的过滤器决策
Represents the three possible outcomes of a log filter evaluation:
表示日志过滤器评估的三种可能结果:
ACCEPT- Accept the log event unconditionally - 无条件接受日志事件DENY- Deny the log event unconditionally - 无条件拒绝日志事件NEUTRAL- No decision, pass to next filter - 不做决策,传递给下一个过滤器
Security | 安全性:
- Thread-safe: Yes (immutable enum) - 线程安全: 是(不可变枚举)
- Since:
- JDK 25, opencode-base-log V1.0.3
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic FilterActionReturns the enum constant of this class with the specified name.static FilterAction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACCEPT
Accept the log event unconditionally. 无条件接受日志事件。 -
DENY
Deny the log event unconditionally. 无条件拒绝日志事件。 -
NEUTRAL
No decision; pass to the next filter in the chain. 不做决策;传递给链中的下一个过滤器。
-
-
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
-