Class Ignore<M extends Message>
java.lang.Object
org.axonframework.messaging.deadletter.Ignore<M>
- Type Parameters:
M- An implementation ofMessagecontained in thedead letterthat's been made a decision on.
- All Implemented Interfaces:
EnqueueDecision<M>
An
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.
Do not that an EnqueueDecision only impacts how, and if, to enqueue a dead letter, and nothing more.
- Since:
- 4.6.0
- Author:
- Steven van Beelen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe decision whether thedead lettershould be enqueued in a queue.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.axonframework.messaging.deadletter.EnqueueDecision
withDiagnostics
-
Constructor Details
-
Ignore
public Ignore()
-
-
Method Details
-
shouldEnqueue
public boolean shouldEnqueue()Description copied from interface:EnqueueDecisionThe decision whether thedead lettershould be enqueued in a queue. Whenfalsethe dead letter should be evicted.- Specified by:
shouldEnqueuein interfaceEnqueueDecision<M extends Message>- Returns:
trueif thedead lettershould be enqueued,falseif the dead letter should be evicted.
-
enqueueCause
Description copied from interface:EnqueueDecisionAThrowableOptionalthat was part of deciding to enqueue thedead letterin a queue. Empty if thedead lettershould be evicted or when there is no failure cause used for deciding to enqueue.- Specified by:
enqueueCausein interfaceEnqueueDecision<M extends Message>- Returns:
- The deciding failure for enqueueing a
dead letter, when present.
-
toString
-