Enum Class AdapterFailureMode

java.lang.Object
java.lang.Enum<AdapterFailureMode>
org.j7m.middleware.adapter.spi.AdapterFailureMode
All Implemented Interfaces:
Serializable, Comparable<AdapterFailureMode>, Constable

public enum AdapterFailureMode extends Enum<AdapterFailureMode>
Failure condition that a compatibility harness can simulate or inspect.

The enum is immutable and thread-safe. Failure modes are generic and do not require any external broker, database, cloud service, workflow engine, or container runtime during J7M core validation.

  • Enum Constant Details

    • NETWORK_UNAVAILABLE

      public static final AdapterFailureMode NETWORK_UNAVAILABLE
      Target transport or endpoint is unavailable.
    • PARTIAL_WRITE

      public static final AdapterFailureMode PARTIAL_WRITE
      Operation wrote only part of its intended durable state.
    • CORRUPTED_RECORD

      public static final AdapterFailureMode CORRUPTED_RECORD
      Durable record or message is corrupted.
    • CORRUPTED_ARTIFACT

      public static final AdapterFailureMode CORRUPTED_ARTIFACT
      Artifact payload or metadata is corrupted.
    • STALE_LEASE

      public static final AdapterFailureMode STALE_LEASE
      Lease owner is stale.
    • STALE_FENCING_TOKEN

      public static final AdapterFailureMode STALE_FENCING_TOKEN
      Fencing token is stale.
    • TIMEOUT

      public static final AdapterFailureMode TIMEOUT
      Operation exceeds its deadline.
    • CANCELLATION

      public static final AdapterFailureMode CANCELLATION
      Operation is cancelled before completion.
    • DUPLICATE_OPERATION

      public static final AdapterFailureMode DUPLICATE_OPERATION
      Operation is delivered or requested more than once.
    • UNSUPPORTED_FEATURE

      public static final AdapterFailureMode UNSUPPORTED_FEATURE
      Requested capability is unsupported.
    • OVERLOADED_TARGET

      public static final AdapterFailureMode OVERLOADED_TARGET
      Adapter or target refuses work because a limit was exceeded.
    • CREDENTIAL_MISSING

      public static final AdapterFailureMode CREDENTIAL_MISSING
      Required credential is absent.
    • CREDENTIAL_INVALID

      public static final AdapterFailureMode CREDENTIAL_INVALID
      Required credential is malformed or rejected.
    • AUTHORIZATION_DENIED

      public static final AdapterFailureMode AUTHORIZATION_DENIED
      Authorization hook denies the operation.
    • RECOVERY_FAILURE

      public static final AdapterFailureMode RECOVERY_FAILURE
      Adapter cannot rebuild claimed durable state.
    • MALFORMED_RESPONSE

      public static final AdapterFailureMode MALFORMED_RESPONSE
      Adapter returns malformed or incomplete data.
    • REDACTION_FAILURE

      public static final AdapterFailureMode REDACTION_FAILURE
      Public status, error, evidence, or output leaks sensitive data.
  • Method Details

    • values

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