Class CommonConfig.ChangeTrackingMap

java.lang.Object
io.aiven.commons.kafka.config.CommonConfig.ChangeTrackingMap
Enclosing class:
CommonConfig

public static class CommonConfig.ChangeTrackingMap extends Object
A map of values that allows overrides.
  • Constructor Details

    • ChangeTrackingMap

      public ChangeTrackingMap(Map<String,Object> baseMap)
      Constructor.
      Parameters:
      baseMap - the original map.
  • Method Details

    • override

      public void override(String key, Object value)
      Sets the override for a key. Passing null removes any override, any other values sets the override.
      Parameters:
      key - the key to override.
      value - the value to set the key to.
    • get

      public Object get(String key)
      Gets the current value of the key. This is the last override or the current value if no override is present.
      Parameters:
      key - the key to get the value for.
      Returns:
      the current value.