Interface OutboxCommandLifecycle<C>
- All Known Implementing Classes:
AbstractProcessOutboxCommand, CreateSubProcessCommand, DispatchTriggerCommand, EmitCompletedCommand, SignalParentCommand, StartWorkerCommand
public interface OutboxCommandLifecycle<C>
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. It is best-effort: implementations performing
mutations must establish their own transaction.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(OutboxCommand command) voidexecutionHeaders(OutboxCommand command) Persisted invocation headers only; the execution boundary owns installing and restoring context.default voidonDead(OutboxCommand command) default booleanshouldEnqueue(C context) type()
CHENILE