Package com.yahoo.config.subscription
Class ConfigSet
java.lang.Object
com.yahoo.config.subscription.ConfigSet
- All Implemented Interfaces:
ConfigSource
Config source as a programmatically built set of
ConfigInstance
s- Author:
- Vegard Havdal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBuilder
(String configId, com.yahoo.config.ConfigInstance.Builder builder) Inserts a new builder in this set.boolean
Returns true if this set contains a config instance matching the given keycom.yahoo.config.ConfigInstance.Builder
Returns a Builder matching the given key, or null if no matchtoString()
-
Constructor Details
-
ConfigSet
public ConfigSet()
-
-
Method Details
-
addBuilder
Inserts a new builder in this set. If an existing entry exists, it is overwritten.- Parameters:
configId
- The config id for this builder.builder
- The builder that will produce config for the particular config id.
-
get
Returns a Builder matching the given key, or null if no match- Parameters:
key
- a config key to get a Builder for- Returns:
- a ConfigInstance
-
contains
Returns true if this set contains a config instance matching the given key- Parameters:
key
- a config key- Returns:
- a ConfigInstance
-
toString
-