public class HttpClientProperties extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpClientProperties.HttpClientPropertiesBuilder |
| Modifier and Type | Method and Description |
|---|---|
static HttpClientProperties.HttpClientPropertiesBuilder |
builder()
Instantiates a new builder.
|
org.apache.http.HttpHost |
getProxy()
The proxy to use when connecting to the remote server.
|
boolean |
isKeepAlive()
Indicates whether or not a custom connection keep-alive time should be used.
|
Integer |
maxConnectionRoute()
The maximum number of connections the client may keep open at the same time per route.
|
Integer |
maxConnectionTotal()
The maximum number of connections the client may keep open at the same time across all routes.
|
Integer |
maxIdleTime()
The maximum time persistent connections can stay idle while kept alive in the connection pool.
|
Integer |
maxKeepAliveTime()
The time a connection can remain idle as part of the keep-alive strategy.
|
public static HttpClientProperties.HttpClientPropertiesBuilder builder()
public Integer maxIdleTime()
public boolean isKeepAlive()
false, the HTTP
client will use the default connection keep-alive strategy, which is to use only the server instructions
(if any) set in the Keep-Alive response header.
If set to true, the HTTP client will use a custom connection keep-alive strategy which uses the
server instructions set in the Keep-Alive response header; if the response doesn't contain a
Keep-Alive header, the client will use a default keep-alive period indicated by
maxKeepAliveTime().maxKeepAliveTime(),
Keep-Alivepublic Integer maxKeepAliveTime()
true.
Defaults to 2 minutes.public Integer maxConnectionTotal()
public Integer maxConnectionRoute()
public org.apache.http.HttpHost getProxy()
Copyright © 2023. All rights reserved.