I think you can use SimpleClientHttpRequestFactory for timeout parameter. Instance of SimpleClientHttpRequestFactory can be set to rest template by constructor or setter method.
By default RestTemplate uses SimpleClientHttpRequestFactory so may be you can directly set value to restTemplate.