public class MissingMessageIdAdvice
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor
AmqpRejectAndDontRequeueException
which signals the container to NOT requeue the message (otherwise we'd have infinite
immediate retries).
If so configured, the broker can send the message to a DLE/DLQ.
Must be placed before the retry interceptor in the advice chain.| Modifier and Type | Field and Description |
|---|---|
private static org.apache.commons.logging.Log |
logger |
private org.springframework.retry.policy.RetryContextCache |
retryContextCache |
| Constructor and Description |
|---|
MissingMessageIdAdvice(org.springframework.retry.policy.RetryContextCache retryContextCache) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
private static final org.apache.commons.logging.Log logger
private final org.springframework.retry.policy.RetryContextCache retryContextCache