How to discard a message from inside a MessageConverter
It would be nice to be able to discard a message (ack it) without processing from inside the MessageConverter, but I have not been able to find a clean way to do it. My current solution is to return Optional.empty() in the MessageConverter and then use @Payload(required = false) in the @RabbitListener and check for a null message, but I find that a bit cumbersome.
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.