Enum Class ResourceEnforcementLevel
- All Implemented Interfaces:
Serializable, Comparable<ResourceEnforcementLevel>, Constable
Describes whether a resource limit is actively enforced.
This enum prevents overclaiming. ENFORCED means the provider
rejects or terminates work when the limit is breached. ADVISORY
means the provider records and reports the limit but cannot guarantee hard
enforcement in pure Java on every platform. POLICY_ONLY means the
value is evaluated before use through J7M capabilities but is not an OS
boundary. UNSUPPORTED means the provider refuses the capability when
strict enforcement is requested.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLimit is measured or reported but not a hard isolation boundary.Limit is actively enforced by the provider.Limit is enforced only when callers use J7M-provided capabilities.Provider does not implement this limit. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceEnforcementLevelReturns the enum constant of this class with the specified name.static ResourceEnforcementLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENFORCED
Limit is actively enforced by the provider. -
ADVISORY
Limit is measured or reported but not a hard isolation boundary. -
POLICY_ONLY
Limit is enforced only when callers use J7M-provided capabilities. -
UNSUPPORTED
Provider does not implement this limit.
-
-
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
-