Package io.constructor.client
Class HttpClientConfig
java.lang.Object
io.constructor.client.HttpClientConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
int
int
int
int
void
setCallTimeout
(int callTimeout) void
setConnectionPoolKeepAliveDuration
(int connectionPoolKeepAliveDuration) void
setConnectionPoolMaxIdleConnections
(int connectionPoolMaxIdleConnections) void
setConnectTimeout
(int connectTimeout) void
setDispatcherMaxRequests
(int dispatcherMaxRequests) void
setDispatcherMaxRequestsPerHost
(int dispatcherMaxRequestsPerHost) void
setReadTimeout
(int readTimeout) void
setWriteTimeout
(int writeTimeout)
-
Constructor Details
-
HttpClientConfig
public HttpClientConfig()
-
-
Method Details
-
getReadTimeout
public int getReadTimeout()- Returns:
- the read timeout in milliseconds
-
setReadTimeout
public void setReadTimeout(int readTimeout) - Parameters:
readTimeout
- the read timeout for new connections in milliseconds
-
getWriteTimeout
public int getWriteTimeout()- Returns:
- the write timeout in milliseconds
-
setWriteTimeout
public void setWriteTimeout(int writeTimeout) - Parameters:
writeTimeout
- the write timeout for new connections in milliseconds
-
getConnectTimeout
public int getConnectTimeout()- Returns:
- the connect timeout in milliseconds
-
setConnectTimeout
public void setConnectTimeout(int connectTimeout) - Parameters:
connectTimeout
- the connect timeout for new connections in milliseconds
-
getCallTimeout
public int getCallTimeout()- Returns:
- the call timeout in milliseconds
-
setCallTimeout
public void setCallTimeout(int callTimeout) - Parameters:
callTimeout
- the call timeout for complete calls in milliseconds
-
getConnectionPoolMaxIdleConnections
public int getConnectionPoolMaxIdleConnections()- Returns:
- the maximum number of idle connections in the pool
-
setConnectionPoolMaxIdleConnections
public void setConnectionPoolMaxIdleConnections(int connectionPoolMaxIdleConnections) - Parameters:
connectionPoolMaxIdleConnections
- the maximum number of idle connections in the pool
-
getConnectionPoolKeepAliveDuration
public int getConnectionPoolKeepAliveDuration()- Returns:
- the keep alive duration in milliseconds
-
setConnectionPoolKeepAliveDuration
public void setConnectionPoolKeepAliveDuration(int connectionPoolKeepAliveDuration) - Parameters:
connectionPoolKeepAliveDuration
- the time in milliseconds to keep the connection alive in the pool before closing it
-
getDispatcherMaxRequests
public int getDispatcherMaxRequests()- Returns:
- the max requests to execute concurrently
-
setDispatcherMaxRequests
public void setDispatcherMaxRequests(int dispatcherMaxRequests) - Parameters:
dispatcherMaxRequests
- the max requests to execute concurrently
-
getDispatcherMaxRequestsPerHost
public int getDispatcherMaxRequestsPerHost()- Returns:
- the max requests for each host to execute concurrently
-
setDispatcherMaxRequestsPerHost
public void setDispatcherMaxRequestsPerHost(int dispatcherMaxRequestsPerHost) - Parameters:
dispatcherMaxRequestsPerHost
- the max requests for each host to execute concurrently
-