public static class HttpClientProperties.HttpClientPropertiesBuilder extends Object
| Constructor and Description |
|---|
HttpClientPropertiesBuilder() |
| Modifier and Type | Method and Description |
|---|---|
HttpClientProperties |
build() |
HttpClientProperties.HttpClientPropertiesBuilder |
keepAlive(boolean keepAlive)
Set whether or not a custom connection keep-alive time should be used.
|
HttpClientProperties.HttpClientPropertiesBuilder |
maxConnectionsTotal(Integer maxConnectionsTotal)
Sets the total maximum number of connections the client may keep open at the same time.
|
HttpClientProperties.HttpClientPropertiesBuilder |
maxIdleTime(Integer maxIdleTime)
Set the maximum time persistent connections can stay idle while kept alive in the connection pool.
|
HttpClientProperties.HttpClientPropertiesBuilder |
provider(Class<? extends com.azure.core.http.HttpClientProvider> provider)
Sets the HTTP Client Provider used by Azure Core when constructing HTTP Client instances.
|
HttpClientProperties.HttpClientPropertiesBuilder |
proxy(com.azure.core.http.ProxyOptions proxy)
Sets a proxy server to use for the client.
|
HttpClientProperties.HttpClientPropertiesBuilder |
readTimeout(Integer readTimeout)
Sets the amount of time between each response data read from the network before timing out.
|
public HttpClientProperties.HttpClientPropertiesBuilder maxIdleTime(Integer maxIdleTime)
maxIdleTime - the maximum idle time expressed in secondspublic HttpClientProperties.HttpClientPropertiesBuilder keepAlive(boolean keepAlive)
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 akeepAlive - set to false to use a default keep-alive strategy or to true to use a
custom onepublic HttpClientProperties.HttpClientPropertiesBuilder readTimeout(Integer readTimeout)
readTimeout - the maximum custom keep-alive time expressed in secondspublic HttpClientProperties.HttpClientPropertiesBuilder maxConnectionsTotal(Integer maxConnectionsTotal)
maxConnectionsTotal - the total maximum number of connectionspublic HttpClientProperties.HttpClientPropertiesBuilder provider(Class<? extends com.azure.core.http.HttpClientProvider> provider)
provider - the requested HTTP Client provider classpublic HttpClientProperties.HttpClientPropertiesBuilder proxy(com.azure.core.http.ProxyOptions proxy)
proxy - the proxy serverpublic HttpClientProperties build()
Copyright © 2025. All rights reserved.