Package com.aim2be.platform.outbox
Enum Class OutboxRecord.Status
- All Implemented Interfaces:
Serializable,Comparable<OutboxRecord.Status>,Constable
- Enclosing class:
- OutboxRecord
Per-row lifecycle.
PENDING— written by the producer transaction, not yet relayed.SENT— successfully published to Kafka by either the AFTER_COMMIT relay or the poller worker.FAILED— exceeded retry budget; awaits operator inspection.ARCHIVED— retained past delivery window for audit; subject topg_partmanretention.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic OutboxRecord.StatusReturns the enum constant of this class with the specified name.static OutboxRecord.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PENDING
-
SENT
-
FAILED
-
ARCHIVED
-
-
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
-
isTerminal
public boolean isTerminal()- Returns:
truewhen this status is a terminal state from the poller's perspective — i.e. the automatic poller MUST NOT re-attempt the row.SENT,ARCHIVEDandFAILEDare all terminal:SENT/ARCHIVEDsucceeded.FAILEDexhausted its retry budget and now awaits operator inspection (which may manually resetFAILED→PENDINGto re-enter the non-terminal lane).
PENDINGis non-terminal: the poller still owns its lifecycle.
-