M - An implementation of Message contained in the dead letter that is decided on.public class DoNotEnqueue<M extends Message<?>> extends Object implements EnqueueDecision<M>
EnqueueDecision stating a dead letter should not be enqueued.| Constructor and Description |
|---|
DoNotEnqueue() |
| Modifier and Type | Method and Description |
|---|---|
Optional<Throwable> |
enqueueCause()
|
boolean |
shouldEnqueue()
The decision whether the
dead letter should be enqueued in a queue. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitwithDiagnosticspublic boolean shouldEnqueue()
EnqueueDecisiondead letter should be enqueued in a queue. When false the
dead letter should be evicted.shouldEnqueue in interface EnqueueDecision<M extends Message<?>>true if the dead letter should be enqueued, false if the dead letter
should be evicted.public Optional<Throwable> enqueueCause()
EnqueueDecisionThrowable Optional that was part of deciding to enqueue the dead letter in a
queue. Empty if the dead letter should be evicted or when there is no failure cause used for deciding to
enqueue.enqueueCause in interface EnqueueDecision<M extends Message<?>>dead letter, when present.Copyright © 2010–2023. All rights reserved.