Package org.apache.juneau.console.views
Enum Class ActionResult.Outcome
- All Implemented Interfaces:
Serializable,Comparable<ActionResult.Outcome>,Constable
- Enclosing class:
- ActionResult
The outcome discriminator a row-action submit reports.
Each constant carries the lowercase wire token emitted for the outcome field. The four synchronous
outcomes (SUCCESS, FAILURE, REFUSAL, UNKNOWN) are what a synchronous write
can emit; CANCELLED and CANCELLED_AFTER_EFFECT are reserved for a future async variant
and are frozen here so that contract does not force a second result-contract bump.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReserved for a future async variant: the job was cancelled before any effect.Reserved for a future async variant: the job was cancelled after a partial/uncertain effect.The write was attempted and failed.The write was refused;ActionResult.refusalCodecarries the named reason.The write completed andActionResult.rowcarries the authoritative row read back.The write's outcome is genuinely unknown (e.g. a crash mid-write) — an honest, non-optimistic state. -
Method Summary
Modifier and TypeMethodDescriptionstatic ActionResult.OutcomeReturns the enum constant of this class with the specified name.static ActionResult.Outcome[]values()Returns an array containing the constants of this enum class, in the order they are declared.wire()Returns the lowercase wire token for this outcome.
-
Enum Constant Details
-
SUCCESS
The write completed andActionResult.rowcarries the authoritative row read back. -
FAILURE
The write was attempted and failed. -
REFUSAL
The write was refused;ActionResult.refusalCodecarries the named reason. -
UNKNOWN
The write's outcome is genuinely unknown (e.g. a crash mid-write) — an honest, non-optimistic state. -
CANCELLED
Reserved for a future async variant: the job was cancelled before any effect. -
CANCELLED_AFTER_EFFECT
Reserved for a future async variant: the job was cancelled after a partial/uncertain effect.
-
-
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
-
wire
Returns the lowercase wire token for this outcome.- Returns:
- The wire token (e.g.
"success").
-