We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This could be really useful to organize the code because in this way you could define an annotation like this in a configuration package:
@Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) @RabbitListener(containerFactory = "event", queues = "${spring.rabbitmq.custom.event.queue}") @EnableRabbitRetryAndDlq( event = "event", retryWhen = {}, discardWhen = {}, directToDlqWhen = { Exception.class } ) public @interface EventListener { }
and the use like this in your application class:
@Service class MyService { @EventListener public void onEvent(Event event) { //... do something } }
The text was updated successfully, but these errors were encountered:
Make EnableRabbitRetryAndDlq applicable to ElementType.ANNOTATION_TYPE
692b499
See Tradeshift#29
9c0d2ed
18220a7
Amazing! Thank you for your contribution!
Sorry, something went wrong.
No branches or pull requests
This could be really useful to organize the code because in this way you could define an annotation like this in a configuration package:
and the use like this in your application class:
The text was updated successfully, but these errors were encountered: