Package com.babelqueue
Class DeadLetters
java.lang.Object
com.babelqueue.DeadLetters
Builds the additive
dead_letter block for an Envelope.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic EnvelopeAnnotate using the envelope's currentattemptsand no error detail.static Envelopeannotate(Envelope envelope, String reason, String originalQueue, int attempts, String error, String exception) Return a copy of the envelope with aDeadLetterblock attached, recording why and where it failed.
-
Method Details
-
annotate
Annotate using the envelope's currentattemptsand no error detail. -
annotate
public static Envelope annotate(Envelope envelope, String reason, String originalQueue, int attempts, String error, String exception) Return a copy of the envelope with aDeadLetterblock attached, recording why and where it failed. The original envelope is preserved unchanged inside the result (records are immutable), so any-language consumers can still read it.
-