Open
Description
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:
maxDuration
anddurationUnit
jitter
andjitterDelayUnit
Especially durationUnit
might look like perhaps it covers all duration values, and not just maxDuration
. This was pointed out by @yoshioterada here: smallrye/smallrye-fault-tolerance#206
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.
Metadata
Metadata
Assignees
Labels
No labels