Skip to content

Introduce onRetryPolicyInterruption() callback in RetryListener #35442

@sbrannen

Description

@sbrannen

Overview

As mentioned in #35434, in RetryTemplate, if we encounter an InterruptedException while sleeping for the configured back-off duration, we throw a RetryException with the InterruptedException as the cause.

However, that RetryException currently propagates to the caller without notifying the registered RetryListener.

Thus, we should introduce a new onRetryPolicyInterruption() callback in RetryListener as a companion to the existing onRetryPolicyExhaustion() callback.

Related Issues

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions