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
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()connectionPoolTimeout(double __value) connectionTimeout(double __value) final booleandispatchGetConfig(com.yahoo.config.ConfigInstance.Producer producer) followRedirects(boolean __value) final booleanfinal Stringfinal Stringfinal StringmaxConnectionPerRoute(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 voidsetApplyOnRestart(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:
dispatchGetConfigin interfacecom.yahoo.config.ConfigInstance.Builder
-
getDefMd5
- Specified by:
getDefMd5in interfacecom.yahoo.config.ConfigInstance.Builder
-
getDefName
- Specified by:
getDefNamein interfacecom.yahoo.config.ConfigInstance.Builder
-
getDefNamespace
- Specified by:
getDefNamespacein interfacecom.yahoo.config.ConfigInstance.Builder
-
getApplyOnRestart
public final boolean getApplyOnRestart()- Specified by:
getApplyOnRestartin interfacecom.yahoo.config.ConfigInstance.Builder
-
setApplyOnRestart
public final void setApplyOnRestart(boolean applyOnRestart) - Specified by:
setApplyOnRestartin interfacecom.yahoo.config.ConfigInstance.Builder
-
build
-