Enum Class FilterAction

java.lang.Object
java.lang.Enum<FilterAction>
cloud.opencode.base.log.filter.FilterAction
All Implemented Interfaces:
Serializable, Comparable<FilterAction>, Constable

public enum FilterAction extends Enum<FilterAction>
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:
  • Enum Constant Details

    • ACCEPT

      public static final FilterAction ACCEPT
      Accept the log event unconditionally. 无条件接受日志事件。
    • DENY

      public static final FilterAction DENY
      Deny the log event unconditionally. 无条件拒绝日志事件。
    • NEUTRAL

      public static final FilterAction NEUTRAL
      No decision; pass to the next filter in the chain. 不做决策;传递给链中的下一个过滤器。
  • Method Details

    • values

      public static FilterAction[] 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

      public static FilterAction valueOf(String name)
      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 name
      NullPointerException - if the argument is null