Package com.babelqueue.idempotency
Class InMemoryStore
java.lang.Object
com.babelqueue.idempotency.InMemoryStore
- All Implemented Interfaces:
Store
Process-local, thread-safe
Store backed by a concurrent set. For tests and
single-process consumers; it is not shared across workers and not persistent — use a
Redis- or database-backed store for production fleets.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDrops an id from the store (manual eviction; a backend may also expire ids).voidRecords this message id as processed.booleanWhether this message id has already been processed (remembered).
-
Constructor Details
-
InMemoryStore
public InMemoryStore()
-
-
Method Details
-
seen
Description copied from interface:StoreWhether this message id has already been processed (remembered). -
remember
Description copied from interface:StoreRecords this message id as processed. -
forget
Description copied from interface:StoreDrops an id from the store (manual eviction; a backend may also expire ids).
-