Package com.yahoo.search.federation
Class ProviderConfig.Builder
java.lang.Object
com.yahoo.search.federation.ProviderConfig.Builder
- All Implemented Interfaces:
com.yahoo.config.ConfigBuilder
,com.yahoo.config.ConfigInstance.Builder
- Enclosing class:
- ProviderConfig
public static final class ProviderConfig.Builder
extends Object
implements com.yahoo.config.ConfigInstance.Builder
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
connectionPoolTimeout
(double __value) connectionTimeout
(double __value) final boolean
dispatchGetConfig
(com.yahoo.config.ConfigInstance.Producer producer) followRedirects
(boolean __value) final boolean
final String
final String
final String
maxConnectionPerRoute
(int __value) maxConnections
(int __value) node
(ProviderConfig.Node.Builder __builder) Add the given builder to this builder's list of Node buildersnode
(Consumer<ProviderConfig.Node.Builder> __func) Make a new builder and run the supplied function on it before adding it to the listnode
(List<ProviderConfig.Node.Builder> __builders) Set the given list as this builder's list of Node builderspingOption
(ProviderConfig.PingOption.Enum __value) queryType
(ProviderConfig.QueryType.Enum __value) readTimeout
(double __value) retries
(int __value) final void
setApplyOnRestart
(boolean applyOnRestart) socketBufferBytes
(int __value) yca
(ProviderConfig.Yca.Builder __builder) yca
(Consumer<ProviderConfig.Yca.Builder> __func) Make a new builder and run the supplied function on it before adding it to the list
-
Field Details
-
node
-
yca
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
node
Add the given builder to this builder's list of Node builders- Parameters:
__builder
- a builder- Returns:
- this builder
-
node
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
-
node
Set the given list as this builder's list of Node builders- Parameters:
__builders
- a list of builders- Returns:
- this builder
-
path
-
maxConnections
-
maxConnectionPerRoute
-
socketBufferBytes
-
retries
-
readTimeout
-
connectionTimeout
-
connectionPoolTimeout
-
yca
-
yca
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
-
queryType
-
pingOption
-
followRedirects
-
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
-