Enum Class AdapterLifecycle

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

public enum AdapterLifecycle extends Enum<AdapterLifecycle>
Lifecycle state of an adapter provider instance.

The enum is immutable and thread-safe. Providers should expose lifecycle transitions in status and audit output without leaking endpoint addresses, credentials, or transport-specific internals. A closed provider must reject new work using a stable unavailable failure.

  • Enum Constant Details

    • CREATED

      public static final AdapterLifecycle CREATED
      Provider object was constructed but not yet started.
    • STARTING

      public static final AdapterLifecycle STARTING
      Provider is performing startup or validation work.
    • RUNNING

      public static final AdapterLifecycle RUNNING
      Provider can accept TCK scenarios or adapter operations.
    • STOPPING

      public static final AdapterLifecycle STOPPING
      Provider is draining or stopping.
    • STOPPED

      public static final AdapterLifecycle STOPPED
      Provider stopped cleanly.
    • FAILED

      public static final AdapterLifecycle FAILED
      Provider reached a failure state and may need operator action.
    • CLOSED

      public static final AdapterLifecycle CLOSED
      Provider resources were closed and further work must be rejected.
  • Method Details

    • values

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