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
We mostly use a convention that a time unit attribute for some attribute foo is called fooUnit (for example, delay and delayUnit). Perhaps with an exception that if the attribute is called value, then the time unit attribute is just unit.
However, some @Retry attributes don't stick to this convention:
I propose we rename durationUnit to maxDurationUnit, and jitterDelayUnit to jitterUnit. We can do it in 2 ways:
Hard breaking change. Just do the rename.
With a deprecation period. For some period of time, both variants would exist, the old one being @Deprecated. If both were used, the new one would have a priority. This should be relatively easy to implement, as there's no collision.
The text was updated successfully, but these errors were encountered:
Yes, we discussed this unit renaming before but dismissed the suggestion of renaming the parameters as the names are straightforwad and not worth the effor of breaking backward compatibility. However, I think the 2nd option sounds like a good compromise.
We mostly use a convention that a time unit attribute for some attribute
foo
is calledfooUnit
(for example,delay
anddelayUnit
). Perhaps with an exception that if the attribute is calledvalue
, then the time unit attribute is justunit
.However, some
@Retry
attributes don't stick to this convention:maxDuration
anddurationUnit
jitter
andjitterDelayUnit
Especially
durationUnit
might look like perhaps it covers all duration values, and not justmaxDuration
. This was pointed out by @yoshioterada here: smallrye/smallrye-fault-tolerance#206I propose we rename
durationUnit
tomaxDurationUnit
, andjitterDelayUnit
tojitterUnit
. We can do it in 2 ways:@Deprecated
. If both were used, the new one would have a priority. This should be relatively easy to implement, as there's no collision.The text was updated successfully, but these errors were encountered: