Class ContainerUtils
java.lang.Object
org.springframework.amqp.rabbit.listener.support.ContainerUtils
Deprecated, for removal: This API element is subject to removal in a future version.
Utility methods for listener containers.
- Since:
- 2.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDeprecated, for removal: This API element is subject to removal in a future version.Return true forAmqpRejectAndDontRequeueException.static booleanDeprecated, for removal: This API element is subject to removal in a future version.Return true forImmediateAcknowledgeAmqpException.static booleanDeprecated, for removal: This API element is subject to removal in a future version.Return true forAmqpRejectAndDontRequeueException.isRejectManual().static booleanshouldRequeue(boolean defaultRequeueRejected, Throwable throwable, org.apache.commons.logging.Log logger) Deprecated, for removal: This API element is subject to removal in a future version.Determine whether a message should be requeued; returns true if the throwable is aMessageRejectedWhileStoppingExceptionor defaultRequeueRejected is true and there is not anAmqpRejectAndDontRequeueExceptionin the cause chain or if there is anImmediateRequeueAmqpExceptionin the cause chain.
-
Method Details
-
shouldRequeue
public static boolean shouldRequeue(boolean defaultRequeueRejected, Throwable throwable, org.apache.commons.logging.Log logger) Deprecated, for removal: This API element is subject to removal in a future version.Determine whether a message should be requeued; returns true if the throwable is aMessageRejectedWhileStoppingExceptionor defaultRequeueRejected is true and there is not anAmqpRejectAndDontRequeueExceptionin the cause chain or if there is anImmediateRequeueAmqpExceptionin the cause chain.- Parameters:
defaultRequeueRejected- the default requeue rejected.throwable- the throwable.logger- the logger to use for debug.- Returns:
- true to requeue.
-
isRejectManual
Deprecated, for removal: This API element is subject to removal in a future version.Return true forAmqpRejectAndDontRequeueException.isRejectManual().- Parameters:
ex- the exception.- Returns:
- the exception's rejectManual property, if it's an
AmqpRejectAndDontRequeueException. - Since:
- 2.2
-
isImmediateAcknowledge
Deprecated, for removal: This API element is subject to removal in a future version.Return true forImmediateAcknowledgeAmqpException.- Parameters:
ex- the exception to traverse.- Returns:
- true if an
ImmediateAcknowledgeAmqpExceptionis present in the cause chain. - Since:
- 4.0
-
isAmqpReject
Deprecated, for removal: This API element is subject to removal in a future version.Return true forAmqpRejectAndDontRequeueException.- Parameters:
ex- the exception to traverse.- Returns:
- true if an
AmqpRejectAndDontRequeueExceptionis present in the cause chain. - Since:
- 4.0
-
ContainerUtils