Muhammad Hewedy
Muhammad Hewedy

Reputation: 30056

Backoff usage in SimpleMessageListenerContainer class

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

Answers (1)

Gary Russell
Gary Russell

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

Related Questions