Package com.yahoo.jdisc.http.client
Class HttpClientConfig.Builder
java.lang.Object
com.yahoo.jdisc.http.client.HttpClientConfig.Builder
- All Implemented Interfaces:
com.yahoo.config.ConfigBuilder
,com.yahoo.config.ConfigInstance.Builder
- Enclosing class:
- HttpClientConfig
public static final class HttpClientConfig.Builder
extends Object
implements com.yahoo.config.ConfigInstance.Builder
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
chunkedEncodingEnabled
(boolean __value) compressionEnabled
(boolean __value) compressionLevel
(int __value) connectionPoolEnabled
(boolean __value) connectionTimeout
(double __value) final boolean
dispatchGetConfig
(com.yahoo.config.ConfigInstance.Producer producer) followRedirects
(boolean __value) final boolean
final String
final String
final String
idleConnectionInPoolTimeout
(double __value) idleConnectionTimeout
(double __value) idleWebSocketTimeout
(double __value) maxNumConnections
(int __value) maxNumConnectionsPerHost
(int __value) maxNumRedirects
(int __value) maxNumRetries
(int __value) proxyServer
(String __value) removeQueryParamsOnRedirect
(boolean __value) requestTimeout
(double __value) final void
setApplyOnRestart
(boolean applyOnRestart) ssl
(HttpClientConfig.Ssl.Builder __builder) ssl
(Consumer<HttpClientConfig.Ssl.Builder> __func) Make a new builder and run the supplied function on it before adding it to the listsslConnectionPoolEnabled
(boolean __value) useProxyProperties
(boolean __value) useRawUri
(boolean __value)
-
Field Details
-
ssl
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
userAgent
-
chunkedEncodingEnabled
-
compressionEnabled
-
connectionPoolEnabled
-
followRedirects
-
removeQueryParamsOnRedirect
-
sslConnectionPoolEnabled
-
proxyServer
-
useProxyProperties
-
useRawUri
-
compressionLevel
-
maxNumConnections
-
maxNumConnectionsPerHost
-
maxNumRedirects
-
maxNumRetries
-
connectionTimeout
-
idleConnectionInPoolTimeout
-
idleConnectionTimeout
-
idleWebSocketTimeout
-
requestTimeout
-
ssl
-
ssl
Make a new builder and run the supplied function on it before adding it to the list- Parameters:
__func
- lambda that modifies the given builder- Returns:
- this builder
-
dispatchGetConfig
public final boolean dispatchGetConfig(com.yahoo.config.ConfigInstance.Producer producer) - Specified by:
dispatchGetConfig
in interfacecom.yahoo.config.ConfigInstance.Builder
-
getDefMd5
- Specified by:
getDefMd5
in interfacecom.yahoo.config.ConfigInstance.Builder
-
getDefName
- Specified by:
getDefName
in interfacecom.yahoo.config.ConfigInstance.Builder
-
getDefNamespace
- Specified by:
getDefNamespace
in interfacecom.yahoo.config.ConfigInstance.Builder
-
getApplyOnRestart
public final boolean getApplyOnRestart()- Specified by:
getApplyOnRestart
in interfacecom.yahoo.config.ConfigInstance.Builder
-
setApplyOnRestart
public final void setApplyOnRestart(boolean applyOnRestart) - Specified by:
setApplyOnRestart
in interfacecom.yahoo.config.ConfigInstance.Builder
-
build
-