Class ConfigPropertyTranslater.Builder

java.lang.Object
io.confluent.telemetry.ConfigPropertyTranslater.Builder
Enclosing class:
ConfigPropertyTranslater

public static class ConfigPropertyTranslater.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • withTranslation

      public ConfigPropertyTranslater.Builder withTranslation(String deprecatedProperty, String newProperty)
      Add a property translation.
    • withPrefixTranslation

      public ConfigPropertyTranslater.Builder withPrefixTranslation(String deprecatedPrefix, String newPrefix)
      Add a prefix translation.

      Any keys starting with deprecatedPrefix will be translated into a new key with newPrefix substituted for deprecatedPrefix.

      Prefix translations are only checked in the absence of an exact match translations.

    • build

      public ConfigPropertyTranslater build()