Enum Class ResourceEnforcementLevel

java.lang.Object
java.lang.Enum<ResourceEnforcementLevel>
org.j7m.middleware.api.isolation.ResourceEnforcementLevel
All Implemented Interfaces:
Serializable, Comparable<ResourceEnforcementLevel>, Constable

public enum ResourceEnforcementLevel extends Enum<ResourceEnforcementLevel>
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.

  • Enum Constant Details

    • ENFORCED

      public static final ResourceEnforcementLevel ENFORCED
      Limit is actively enforced by the provider.
    • ADVISORY

      public static final ResourceEnforcementLevel ADVISORY
      Limit is measured or reported but not a hard isolation boundary.
    • POLICY_ONLY

      public static final ResourceEnforcementLevel POLICY_ONLY
      Limit is enforced only when callers use J7M-provided capabilities.
    • UNSUPPORTED

      public static final ResourceEnforcementLevel UNSUPPORTED
      Provider does not implement this limit.
  • Method Details

    • values

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