Interface SequencedDeadLetterQueue<M extends Message>

Type Parameters:
M - An implementation of Message contained in the dead letters within this queue.
All Known Implementing Classes:
CachingSequencedDeadLetterQueue, InMemorySequencedDeadLetterQueue, JdbcSequencedDeadLetterQueue, JpaSequencedDeadLetterQueue

public interface SequencedDeadLetterQueue<M extends Message>
Interface describing the required functionality for a dead letter queue. Contains several FIFO-ordered sequences of dead letters.

The contained sequences are uniquely identifiable through the "sequence identifier." Dead-letters are kept in the form of a DeadLetter. It is highly recommended to use the process operation (or any of its variants) to consume letters from the queue for retrying. This method ensures sequences cannot be concurrently accessed, thus protecting the user against handling messages out of order.

All methods in this interface return CompletableFuture to support asynchronous implementations. In-memory implementations may simply return completed futures, while persistent implementations (JPA, JDBC, etc.) can leverage the async nature for non-blocking I/O.

Since:
4.6.0
Author:
Steven van Beelen, Allard Buijze, Milan Savic, Mitchell Herrijgers
See Also: