Conversation
| .build(); | ||
|
|
||
| retryingTarantoolClient | ||
| = TarantoolClientFactory.configureClient(tarantoolClient).withRetryingByNumberOfAttempts(3).build(); |
There was a problem hiding this comment.
Such a long name. Why not withRetry(3) or withAttempt(42) or withMaxTries(99)?
There was a problem hiding this comment.
You're right, maybe we should rename it. Could you create a ticket for it?
There was a problem hiding this comment.
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.
| .build(); | ||
|
|
||
| retryingTarantoolClient | ||
| = TarantoolClientFactory.configureClient(tarantoolClient).withRetryingByNumberOfAttempts(3).build(); |
There was a problem hiding this comment.
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