Package com.babelqueue.idempotency
package com.babelqueue.idempotency
Optional idempotency helper (ADR-0022): dedupe a consume handler on
meta.id.
Idempotent.wrap(com.babelqueue.idempotency.Store, com.babelqueue.idempotency.Handler) wraps a
Handler so a message already processed is skipped;
Store is the pluggable dedupe record, with
InMemoryStore as the reference implementation. The
wire envelope is unchanged (schema_version: 1) — this is a pure consumer-side
concern. See .ssot/contracts/error-handling.md §1.
-
ClassDescriptionA consume handler: processes one decoded
Envelope.Wraps aHandlerso a message whosemeta.idwas already processed successfully is skipped instead of run again (ADR-0022) — the Java mirror of the PHPIdempotent::wrap, Goidempotency.Wrap, Pythonwrap, and NodeWraphelpers.Process-local, thread-safeStorebacked by a concurrent set.A pluggable record of message ids that have already been processed, keyed on the envelope'smeta.id.