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>
Shutdown policy enumeration.
关闭策略枚举。
- Since:
- JDK 25, opencode-base-parallel V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionShutdown on first failure - 首次失败时关闭Shutdown on first success - 首次成功时关闭 -
Method Summary
Modifier and TypeMethodDescriptionstatic StructuredScope.PolicyReturns the enum constant of this class with the specified name.static StructuredScope.Policy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SHUTDOWN_ON_FAILURE
Shutdown on first failure - 首次失败时关闭 -
SHUTDOWN_ON_SUCCESS
Shutdown on first success - 首次成功时关闭
-
-
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
-