Class DoNotEnqueue<M extends Message>
java.lang.Object
org.axonframework.messaging.deadletter.DoNotEnqueue<M>
- Type Parameters:
M- An implementation ofMessagecontained in thedead letterthat is decided on.
- All Implemented Interfaces:
EnqueueDecision<M>
An
EnqueueDecision stating a dead letter should not be enqueued.- 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
-
DoNotEnqueue
public DoNotEnqueue()
-
-
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
-