Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

add ability to retry on custom conditions #70

Closed
elennick opened this issue Jul 12, 2018 · 0 comments
Closed

add ability to retry on custom conditions #70

elennick opened this issue Jul 12, 2018 · 0 comments
Assignees
Milestone

Comments

@elennick
Copy link
Owner

Currently retry4j only supports retrying on a set of exception types or values being returned from the callable logic. There also needs to be a way to retry on other conditions such as if a exception is returned with a certain value inside of it... for example:

HttpClientErrorException is thrown by apache HttpClient, you may want to retry only when ex.getRawStatusCode returned a 5XX error code and not a 4XX error code from

@elennick elennick added this to the 0.14.0 milestone Jul 12, 2018
@elennick elennick self-assigned this Jul 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant