The built-in RetryPolicy
implementations are currently not declared as final
, which makes it technically possible to extend them.
However, they are not actually designed to be extensible.
- Their fields are
private
and do not have accessor methods. - Their
RetryExecution
implementations are alsoprivate
, which prevents reuse.
In light of the above, we should make all built-in RetryPolicy
implementations final
.