M
- An implementation of Message
contained in the dead letter
that's been made a
decision on.public class Ignore<M extends Message<?>> extends Object implements EnqueueDecision<M>
EnqueueDecision
stating a dead letter
should be ignored.
This means the decision can be ignored entirely. As such the component enqueueing a letter will decide what to do
with it. In most scenarios this result in enqueueing the given letter
, or keeping it in the queue.
Constructor and Description |
---|
Ignore() |
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, wait
withDiagnostics
public boolean shouldEnqueue()
EnqueueDecision
dead 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()
EnqueueDecision
Throwable
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.