public class ConnectionConfig extends Object
ConnectionConfig objects are not immutable they can't be shared.
Modifier and Type | Method and Description |
---|---|
ConnectionConfig |
connectionRequestTimeout(int connectionRequestTimeout) |
ConnectionConfig |
connectTimeout(int connectTimeout) |
static ConnectionConfig |
create() |
ConnectionConfig |
maxPoolSize(int maxPoolSize)
Set the connection pool max size of concurrent connections to a specific route, which is 128 by default.
|
ConnectionConfig |
socketTimeOut(int socketTimeOut) |
public ConnectionConfig connectTimeout(int connectTimeout)
connectTimeout
- The Connection Timeout (http.connection.timeout) – the time to establish the connection with the remote host.
By default 5000mspublic ConnectionConfig socketTimeOut(int socketTimeOut)
socketTimeOut
- The Socket Timeout (http.socket.timeout) – the time waiting for data – after the connection was established;
maximum time of inactivity between two data packets. By default 30000mspublic ConnectionConfig connectionRequestTimeout(int connectionRequestTimeout)
connectionRequestTimeout
- The Connection Manager Timeout (http.connection-manager.timeout) –
the time to wait for a connection from the connection manager/pool.
By default 30000mspublic ConnectionConfig maxPoolSize(int maxPoolSize)
maxPoolSize
- valuepublic static ConnectionConfig create()
Copyright © 2018. All rights reserved.