M- An implementation of
Messagecontained in the
dead letterthat's been made a decision on.
public interface EnqueueDecision<M extends Message<?>>
dead lettercontaining a message of type
Describes that the letter should be
enqueued or not. If the letter should be enqueued the
enqueueCause() may contain a
withDiagnostics(DeadLetter) may add
diagnostic information to the dead letter that should be taken into account when
enqueueing the letter.
|Modifier and Type||Method and Description|
The decision whether the
dead lettershould be enqueued in a queue. When
falsethe dead letter should be evicted.
dead lettershould be enqueued,
falseif the dead letter should be evicted.
Optionalthat was part of deciding to enqueue the
dead letterin a queue. Empty if the
dead lettershould be evicted or when there is no failure cause used for deciding to enqueue.
dead letter, when present.
default DeadLetter<? extends M> withDiagnostics(DeadLetter<? extends M> letter)
MetaDatato the given
letter. The added diagnostics may provide additional information on the decision that may be used to influence future decisions.
By default, the
letter is returned as is.
Copyright © 2010–2023. All rights reserved.