Package org.chenile.orchestrator.process.outbox
package org.chenile.orchestrator.process.outbox
-
ClassDescriptionGeneric persisted delivery envelope.All behavior for a command type, including its JSON schema and idempotency keys. enqueue joins the producer transaction; dispatch joins the fenced handler transaction. onDead runs after DEAD has committed, outside the failed transaction.A producer only selects commands for its own context type; eligibility performs no writes.Dispatch registration is independent of producer context types.Drains the outbox: claims a due command, runs it through the
OutboxCommandLifecycle, and marks it DONE or (on failure) applies theOutboxRetryPolicy.Exponential backoff with a maximum interval and a maximum attempt count.Atomic enqueue plus fenced, recoverable PostgreSQL dispatch leases.Drains the outbox of every tenant named by theTenantSupplier.
CHENILE