You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
Currently, the RetryConfigBuilder has lot of options. Many of those options are exclusive and belong to logical groups. I was wondering whether we could simplify the API by having smaller group of builders; this might help users to browse the available options reasonably easier. Also please provide any alternate suggestions.
I agree with the issue, the config builder definitely has grown to have a lot of options with some being required, some being optional, some being mutually exclusive, etc. Until now I've tried to get around that using the builder validation to indicate when someone tries to build a config in an invalid state and via examples/documentation. I'd be ok trying out some form of what you laid out above with sub builders... do you want to try prototyping something so we can see a concrete example and see how it feels?
Also it might be worth checking out some other libraries to see how they handle streamlining their configuration/setup... it's possible we could get some ideas from what others have done. I have a list of other Java retry libraries at the bottom of the README you can use to start with if you're interested in that: https://github.com/elennick/retry4j#other-notes
Currently, the
RetryConfigBuilder
has lot of options. Many of those options are exclusive and belong to logical groups. I was wondering whether we could simplify the API by having smaller group of builders; this might help users to browse the available options reasonably easier. Also please provide any alternate suggestions.The text was updated successfully, but these errors were encountered: