@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 |
|---|---|
String |
event |
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
checkInheritance
Define if the exception check should use 'instanceof' operator.
|
Class[] |
directToDlqWhen
Exceptions to verify if the message should be sent to DLQ.
|
Class[] |
discardWhen
Exceptions to ignore and just discard the message.
|
Class[] |
retryWhen
Exceptions to verify if the message should be sent to retry.
|
public abstract String event
public abstract boolean checkInheritance
public abstract Class[] discardWhen
public abstract Class[] retryWhen
public abstract Class[] directToDlqWhen
Copyright © 2022 Tradeshift. All rights reserved.