Class InMemorySequencedDeadLetterQueue.Builder<M extends Message>
java.lang.Object
org.axonframework.messaging.deadletter.InMemorySequencedDeadLetterQueue.Builder<M>
- Type Parameters:
M- The type ofMessagemaintained in thedead letterof thisSequencedDeadLetterQueue.
- Enclosing class:
InMemorySequencedDeadLetterQueue<M extends Message>
Builder class to instantiate an
InMemorySequencedDeadLetterQueue.
The maximum number of sequences defaults to 1024 and the maximum amount of dead letters inside a sequence
defaults to 1024.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Initializes aInMemorySequencedDeadLetterQueueas specified through this Builder.maxSequences(int maxSequences) Sets the maximum number of sequences thisSequencedDeadLetterQueuemay contain.maxSequenceSize(int maxSequenceSize) Sets the maximum amount ofdead lettersper sequence thisSequencedDeadLetterQueuecan store.protected voidvalidate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxSequences
Sets the maximum number of sequences thisSequencedDeadLetterQueuemay contain. This requirement reflects itself as the maximum amount of unique "sequence identifiers."The given
maxSequencesis required to be a strictly positive number. It defaults to1024.- Parameters:
maxSequences- The maximum amount of sequences for the queue under construction.- Returns:
- The current Builder, for fluent interfacing.
-
maxSequenceSize
Sets the maximum amount ofdead lettersper sequence thisSequencedDeadLetterQueuecan store.The given
maxSequenceSizeis required to be a strictly positive number. It defaults to1024.- Parameters:
maxSequenceSize- The maximum amount ofdead lettersper sequence.- Returns:
- The current Builder, for fluent interfacing.
-
build
Initializes aInMemorySequencedDeadLetterQueueas specified through this Builder.- Returns:
- A
InMemorySequencedDeadLetterQueueas specified through this Builder.
-
validate
protected void validate()
-