M
- The type of Message
maintained in the dead letter
of this
SequencedDeadLetterQueue
.public static class InMemorySequencedDeadLetterQueue.Builder<M extends Message<?>> extends Object
InMemorySequencedDeadLetterQueue
.
The maximum number of sequences defaults to 1024
and the maximum amount of dead letters inside a sequence
defaults to 1024
.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
InMemorySequencedDeadLetterQueue<M> |
build()
Initializes a
InMemorySequencedDeadLetterQueue as specified through this Builder. |
InMemorySequencedDeadLetterQueue.Builder<M> |
maxSequences(int maxSequences)
Sets the maximum number of sequences this
SequencedDeadLetterQueue may contain. |
InMemorySequencedDeadLetterQueue.Builder<M> |
maxSequenceSize(int maxSequenceSize)
Sets the maximum amount of
dead letters per sequence this SequencedDeadLetterQueue
can store. |
protected void |
validate() |
public InMemorySequencedDeadLetterQueue.Builder<M> maxSequences(int maxSequences)
SequencedDeadLetterQueue
may contain. This requirement
reflects itself as the maximum amount of unique "sequence identifiers."
The given maxSequences
is required to be a strictly positive number. It defaults to 1024
.
maxSequences
- The maximum amount of sequences for the queue under construction.public InMemorySequencedDeadLetterQueue.Builder<M> maxSequenceSize(int maxSequenceSize)
dead letters
per sequence this SequencedDeadLetterQueue
can store.
The given maxSequenceSize
is required to be a strictly positive number. It defaults to 1024
.
maxSequenceSize
- The maximum amount of dead letters
per sequence.public InMemorySequencedDeadLetterQueue<M> build()
InMemorySequencedDeadLetterQueue
as specified through this Builder.InMemorySequencedDeadLetterQueue
as specified through this Builder.protected void validate()
Copyright © 2010–2024. All rights reserved.