https://docs.spring.io/autorepo/docs/spring-framework/4.1.7.RELEASE/javadoc-api/org/springframework/http/client/HttpComponentsClientHttpRequestFactory.html
HttpComponentsClientHttpRequestFactory requestFactory =
new HttpComponentsClientHttpRequestFactory();
requestFactory.setConnectionRequestTimeout(connectRequestTimeout);
requestFactory.setConnectTimeout(connectTimeout);
requestFactory.setReadTimeout(readTimeout);
setConnectionRequestTimeout(int connectionRequestTimeout)
Set the timeout in milliseconds used when requesting a connection from the connection manager using the underlying HttpClient.
(del manager!, del http pool, si no tiene conexiones para ofrecer)
setConnectTimeout(int timeout)
Set the connection timeout for the underlying HttpClient.
(conexion con el server)
setReadTimeout(int timeout)
Set the socket read timeout for the underlying HttpClient.
(lectura del response).
1990: The Bronx Warriors (1982)
2 months ago
No comments :
Post a Comment