Enum Class AdapterLifecycle
- All Implemented Interfaces:
Serializable, Comparable<AdapterLifecycle>, Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionProvider resources were closed and further work must be rejected.Provider object was constructed but not yet started.Provider reached a failure state and may need operator action.Provider can accept TCK scenarios or adapter operations.Provider is performing startup or validation work.Provider stopped cleanly.Provider is draining or stopping. -
Method Summary
Modifier and TypeMethodDescriptionstatic AdapterLifecycleReturns the enum constant of this class with the specified name.static AdapterLifecycle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATED
Provider object was constructed but not yet started. -
STARTING
Provider is performing startup or validation work. -
RUNNING
Provider can accept TCK scenarios or adapter operations. -
STOPPING
Provider is draining or stopping. -
STOPPED
Provider stopped cleanly. -
FAILED
Provider reached a failure state and may need operator action. -
CLOSED
Provider resources were closed and further work must be rejected.
-
-
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
-