spring amqp enable retry by configuration and prevent it according to a specified exception

前端 未结 1 397
难免孤独
难免孤独 2021-01-25 21:19

I have the following two cases

  1. In case of ExceptionA : retrying for finite number of times and finally when number of retrials exhausted, message
相关标签:
1条回答
  • 2021-01-25 21:49

    Provide a SimpleRetryPolicy with a map of exceptions and booleans (whether or not to retry). You can optionally traverse the exception cause tree to find the specific exception. See the Javadocs for SimpleRetryPolicy.

    0 讨论(0)
提交回复
热议问题