Skip to content

Replacement for Spring Retry’s @Recover? #35685

@zyro23

Description

@zyro23

given the core Resilience Features supersede spring-retry, is there a replacement for the spring-retry @Recover functionality?

ref. https://github.com/spring-projects/spring-retry?tab=readme-ov-file#declarative-example

@Retryable(retryFor = RemoteAccessException.class)
public void service() {
    // ... do something
}
@Recover
public void recover(RemoteAccessException e) {
   // ... panic
}

from what i understand, the retry support in core is intentionally minimal but as spring-retry is in the attic/maintenance-only now, having to fall back to Programmatic Retry Support (i.e. RetryTemplate) would be a step backwards in my opinion.

if i am not missing something and there is no replacement (yet), please consider this issue a feature-/enhancement-request to add it.

thanks & regards.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applystatus: feedback-providedFeedback has been provided

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions