-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Closed
Description
Looking at the latest state of affairs in Spring AMQP, things are a bit out of sync:
- The server-side (interceptors for
@RetryTopicListener
)requires aRetryPolicy
to be set, not aRetryTemplate
. The reasoning behind that is that it doesn't useRetryTemplate
at all, only what the retry policy provides to compute back off values. - The client-side (
RabbitTemplate
) still offers a callback to set the retry template. This allows to not only set the retry policy but also anyRetryListener
that might be required. Custom listeners support was the root cause forRabbitTemplateCustomizer
to be added (Add RabbitTemplateCustomizer to allow customization of RabbitTemplates #34050)
RabbitRetryTemplateCustomizer
looks wrong now as it is no longer required by the server-side. And this callback only allowed to replace BackOffPolicy
& RetryPolicy
(configured by properties by default) by new instance that doesn't know about existing settings.
This is required to update to the latest milestone, see #46999.
Metadata
Metadata
Assignees
Labels
type: enhancementA general enhancementA general enhancement