Class ConfigSet

java.lang.Object
com.yahoo.config.subscription.ConfigSet
All Implemented Interfaces:
ConfigSource

public class ConfigSet extends Object implements ConfigSource
Config source as a programmatically built set of ConfigInstances
Author:
Vegard Havdal
  • Constructor Details

    • ConfigSet

      public ConfigSet()
  • Method Details

    • addBuilder

      public void addBuilder(String configId, com.yahoo.config.ConfigInstance.Builder builder)
      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

      public com.yahoo.config.ConfigInstance.Builder get(ConfigKey<?> key)
      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

      public boolean contains(ConfigKey<?> key)
      Returns true if this set contains a config instance matching the given key
      Parameters:
      key - a config key
      Returns:
      a ConfigInstance
    • toString

      public String toString()
      Overrides:
      toString in class Object