Enum Class StructuredScope.Policy

java.lang.Object
java.lang.Enum<StructuredScope.Policy>
cloud.opencode.base.parallel.structured.StructuredScope.Policy
All Implemented Interfaces:
Serializable, Comparable<StructuredScope.Policy>, Constable
Enclosing class:
StructuredScope<T>

public static enum StructuredScope.Policy extends Enum<StructuredScope.Policy>
Shutdown policy enumeration. 关闭策略枚举。
Since:
JDK 25, opencode-base-parallel V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Enum Constant Details

    • SHUTDOWN_ON_FAILURE

      public static final StructuredScope.Policy SHUTDOWN_ON_FAILURE
      Shutdown on first failure - 首次失败时关闭
    • SHUTDOWN_ON_SUCCESS

      public static final StructuredScope.Policy SHUTDOWN_ON_SUCCESS
      Shutdown on first success - 首次成功时关闭
  • Method Details

    • values

      public static StructuredScope.Policy[] 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 StructuredScope.Policy 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