-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MAJOR] Update to R4j 1.1.0, and implement Retries #7
Conversation
@@ -6,7 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). | |||
|
|||
## [Unreleased] | |||
### Changed | |||
- nothing yet | |||
- Added support for R4j `Retry` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be moved to an ### Added
section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, done
builder.enableAutomaticTransitionFromOpenToHalfOpen(); | ||
} | ||
@JsonProperty | ||
private Class[] ignoreExceptions = new Class[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we match the signature from resilience4j? (i.e. Class<? extends Throwable>[]
)
The same for the property below.
* Names of exceptions to ignore | ||
*/ | ||
@JsonProperty | ||
private Class[] ignoreExceptions = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and below are other spots where they could be Class<? extends Throwable>[]
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done for all Class[]
I started out trying to implement support for R4j's
Retry
feature, which is in here. But I also bumped us up to Resilience4j v1.1.0, which is a pretty major change from the previous version. Therefore this is a breaking change from the previous version.Added
Retry
feature.Changed
README.MD
Deleted
PR Checklist Forms
CHANGELOG.md updated
Unit test(s) added
Reviewer assigned
PR assigned (presumably to submitter)
Labels added (enhancement, bug, documentation)