@poutsma added a JdkClientHttpRequestFactory.setReadTimeout(Duration) so the conversion to and from int is no longer needed.