Package com.yahoo.cloud.config
Class SentinelConfig.Builder
java.lang.Object
com.yahoo.cloud.config.SentinelConfig.Builder
- All Implemented Interfaces:
com.yahoo.config.ConfigBuilder,com.yahoo.config.ConfigInstance.Builder
- Enclosing class:
- SentinelConfig
public static final class SentinelConfig.Builder
extends Object
implements com.yahoo.config.ConfigInstance.Builder
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplication(SentinelConfig.Application.Builder __builder) Make a new builder and run the supplied function on it before adding it to the listbuild()connectivity(SentinelConfig.Connectivity.Builder __builder) Make a new builder and run the supplied function on it before adding it to the listfinal booleandispatchGetConfig(com.yahoo.config.ConfigInstance.Producer producer) final booleanfinal Stringfinal Stringfinal Stringport(SentinelConfig.Port.Builder __builder) port(Consumer<SentinelConfig.Port.Builder> __func) Make a new builder and run the supplied function on it before adding it to the listservice(SentinelConfig.Service.Builder __builder) Add the given builder to this builder's list of Service buildersMake a new builder and run the supplied function on it before adding it to the listservice(List<SentinelConfig.Service.Builder> __builders) Set the given list as this builder's list of Service buildersfinal voidsetApplyOnRestart(boolean applyOnRestart)
-
Field Details
-
port
-
application
-
connectivity
-
service
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
port
-
port
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
-
application
-
application
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
-
connectivity
-
connectivity
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
-
service
Add the given builder to this builder's list of Service builders- Parameters:
__builder- a builder- Returns:
- this builder
-
service
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
-
service
Set the given list as this builder's list of Service builders- Parameters:
__builders- a list of builders- Returns:
- this builder
-
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
-