Class ConfigPropertyTranslater

java.lang.Object
io.confluent.telemetry.ConfigPropertyTranslater

public class ConfigPropertyTranslater extends Object
Translates map keys according to configured rules.

Use case is for handling deprecated config properties by translating them to their non-deprecated equivalents.

  • Method Details

    • translate

      public <T> Map<String,T> translate(Map<String,T> originals)
      Return a new Map by applying the configured translations to each key. A warning message will be logged for each key that is translated.

      Exact matches are checked before prefix matches.