API overloads with Duration were added for APIs taking TimeUnit and a numeric value as parameters, in issue #10245.