Skip to content

Replacement for Spring Retry's RetryContext and RetrySynchronizationManagerΒ #35955

@kzander91

Description

@kzander91

For code that needs to be aware about the number of attempts, or that needs to keep information between individual attempts within a retryable invocation, Spring Retry had the RetryContext abstraction, that was given as an argument to the callback invoked by RetryTemplate, and was statically accessible through RetrySynchronizationManager from within code marked with @Retryable.

No replacement for this seems to exist in Framework's support and implementing this myself isn't straightforward in all cases.
Please consider adding this functionality back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions