I want to have two sets API for the clients to publish messages
- sync send(no retry, fail immediately and send status back to the clients synchronously)
- async send (publisher and confirm callback, with retry, log and drop the message after certain retries). I am able to implement this by enabling confirm and return.
Is there any way to implement Synchronous publish API using rabbitTemplate which will block for confirm and return both?
rabbiTemplate.waitForConfirmsOrDie(mills) blocks for confirmation, but I want caller to know if routing is successful as well or throw exception.