Reputation: 30056
I can understand that org.springframework.util.backoff
exists for simple use cases and to be used in core spring modules. (vs. using spring-retry
).
But my question is, why spring-amqp
uses it instead of spring-retry
in handleStartupFailure()
of SimpleMessageListenerContainer
as spring-retry
is already a dependency.
Upvotes: 0
Views: 172
Reputation: 174574
Originally, the listener container had no mechanism to backoff, just a recoveryInterval
.
When backoff was added, we didn't need the extra capabilities provided by spring-retry (exception classification, stateful retry, etc) so it seemed simpler to use the Spring utility.
What is your concern? What is not provided by the current mechanism that you need?
Upvotes: 1