Class AggregatePriorityListConfigProvider

java.lang.Object
io.javaoperatorsdk.operator.config.loader.provider.AggregatePriorityListConfigProvider
All Implemented Interfaces:
ConfigProvider

public class AggregatePriorityListConfigProvider extends Object implements ConfigProvider
A ConfigProvider that delegates to an ordered list of providers. Providers are queried in list order; the first non-empty result wins.
  • Constructor Details

    • AggregatePriorityListConfigProvider

      public AggregatePriorityListConfigProvider(List<ConfigProvider> providers)
  • Method Details

    • getValue

      public <T> Optional<T> getValue(String key, Class<T> type)
      Description copied from interface: ConfigProvider
      Returns the value associated with key, converted to type, or an empty Optional if the key is not set.
      Specified by:
      getValue in interface ConfigProvider
      Type Parameters:
      T - the value type
      Parameters:
      key - the dot-separated configuration key, e.g. josdk.cache.sync.timeout
      type - the expected type of the value; supported types depend on the implementation
      Returns:
      an Optional containing the typed value, or empty if the key is absent