Package org.apache.kafka.clients.admin
Class ConfigEntry
- java.lang.Object
- 
- org.apache.kafka.clients.admin.ConfigEntry
 
- 
 @Evolving public class ConfigEntry extends java.lang.Object A class representing a configuration entry containing name, value and additional metadata. The API of this class is evolving, seeAdminClientfor details.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classConfigEntry.ConfigSourceSource of configuration entries.static classConfigEntry.ConfigSynonymClass representing a configuration synonym of aConfigEntry.
 - 
Constructor SummaryConstructors Constructor Description ConfigEntry(java.lang.String name, java.lang.String value)Create a configuration entry with the provided values.ConfigEntry(java.lang.String name, java.lang.String value, boolean isDefault, boolean isSensitive, boolean isReadOnly)Deprecated.since 1.1.0.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()booleanisDefault()Return whether the config value is the default or if it's been explicitly set.booleanisReadOnly()Return whether the config is read-only and cannot be updated.booleanisSensitive()Return whether the config value is sensitive.java.lang.Stringname()Return the config name.ConfigEntry.ConfigSourcesource()Return the source of this configuration entry.java.util.List<ConfigEntry.ConfigSynonym>synonyms()Returns all config values that may be used as the value of this config along with their source, in the order of precedence.java.lang.StringtoString()java.lang.Stringvalue()Return the value or null.
 
- 
- 
- 
Constructor Detail- 
ConfigEntrypublic ConfigEntry(java.lang.String name, java.lang.String value)Create a configuration entry with the provided values.- Parameters:
- name- the non-null config name
- value- the config value or null
 
 - 
ConfigEntrypublic ConfigEntry(java.lang.String name, java.lang.String value, boolean isDefault, boolean isSensitive, boolean isReadOnly)Deprecated.since 1.1.0. This constructor will be removed in a future release.Create a configuration with the provided values.- Parameters:
- name- the non-null config name
- value- the config value or null
- isDefault- whether the config value is the default or if it's been explicitly set
- isSensitive- whether the config value is sensitive, the broker never returns the value if it is sensitive
- isReadOnly- whether the config is read-only and cannot be updated
 
 
- 
 - 
Method Detail- 
namepublic java.lang.String name() Return the config name.
 - 
valuepublic java.lang.String value() Return the value or null. Null is returned if the config is unset or if isSensitive is true.
 - 
sourcepublic ConfigEntry.ConfigSource source() Return the source of this configuration entry.
 - 
isDefaultpublic boolean isDefault() Return whether the config value is the default or if it's been explicitly set.
 - 
isSensitivepublic boolean isSensitive() Return whether the config value is sensitive. The value is always set to null by the broker if the config value is sensitive.
 - 
isReadOnlypublic boolean isReadOnly() Return whether the config is read-only and cannot be updated.
 - 
synonymspublic java.util.List<ConfigEntry.ConfigSynonym> synonyms() Returns all config values that may be used as the value of this config along with their source, in the order of precedence. The list starts with the value returned in this ConfigEntry. The list is empty if synonyms were not requested usingDescribeConfigsOptions.includeSynonyms(boolean)
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-