-
Notifications
You must be signed in to change notification settings - Fork 13
Get rid of double executor in retrying #383
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
Conversation
.build(); | ||
|
||
retryingTarantoolClient | ||
= TarantoolClientFactory.configureClient(tarantoolClient).withRetryingByNumberOfAttempts(3).build(); |
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.
Such a long name. Why not withRetry(3)
or withAttempt(42)
or withMaxTries(99)
?
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.
You're right, maybe we should rename it. Could you create a ticket for it?
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.
This is a builder. We can make it hierarchical, but with plain structure as it is now such a long name is necessary because it specifies two options in one time: that we have a retry mechanism enabled and that we specify number of attempts as its parameter.
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.
LGTM.
.build(); | ||
|
||
retryingTarantoolClient | ||
= TarantoolClientFactory.configureClient(tarantoolClient).withRetryingByNumberOfAttempts(3).build(); |
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.
This is a builder. We can make it hierarchical, but with plain structure as it is now such a long name is necessary because it specifies two options in one time: that we have a retry mechanism enabled and that we specify number of attempts as its parameter.
Before changing:
After changing:
I haven't forgotten about:
Related issues:
Closes #382