Package io.confluent.telemetry
Class ConfigPropertyTranslater.Builder
java.lang.Object
io.confluent.telemetry.ConfigPropertyTranslater.Builder
- Enclosing class:
ConfigPropertyTranslater
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withPrefixTranslation(String deprecatedPrefix, String newPrefix) Add a prefix translation.withTranslation(String deprecatedProperty, String newProperty) Add a property translation.
-
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
deprecatedPrefixwill be translated into a new key withnewPrefixsubstituted fordeprecatedPrefix.Prefix translations are only checked in the absence of an exact match translations.
-
build
-