@Target(value={METHOD,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
public @interface EnableRabbitRetryAndDlq
- Should be discarded - Should be sent to retry - Should be sent to DLQ - Otherwise discardThe
discardWhen attribute has higher precedence over exceptions attribute.| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
event |
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
checkInheritance
Define if the exception check should use 'instanceof' operator.
|
java.lang.Class[] |
directToDlqWhen
Exceptions to verify if the message should be sent to DLQ.
|
java.lang.Class[] |
discardWhen
Exceptions to ignore and just discard the message.
|
java.lang.Class[] |
retryWhen
Exceptions to verify if the message should be sent to retry.
|
public abstract boolean checkInheritance
public abstract java.lang.Class[] discardWhen
Copyright © 2019 Tradeshift. All rights reserved.