public final class ContainerUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
shouldRequeue(boolean defaultRequeueRejected,
java.lang.Throwable throwable,
org.apache.commons.logging.Log logger)
Determine whether a message should be requeued; returns true if the throwable is a
MessageRejectedWhileStoppingException or defaultRequeueRejected is true and
there is not an AmqpRejectAndDontRequeueException in the cause chain. |
public static boolean shouldRequeue(boolean defaultRequeueRejected,
java.lang.Throwable throwable,
org.apache.commons.logging.Log logger)
MessageRejectedWhileStoppingException or defaultRequeueRejected is true and
there is not an AmqpRejectAndDontRequeueException in the cause chain.defaultRequeueRejected - the default requeue rejected.throwable - the throwable.logger - the logger to use for debug.