@InterfaceStability.Evolving public class ConfigEntry extends java.lang.Object
Admin
for details.Modifier and Type | Class and Description |
---|---|
static class |
ConfigEntry.ConfigSource
Source of configuration entries.
|
static class |
ConfigEntry.ConfigSynonym
Class representing a configuration synonym of a
ConfigEntry . |
static class |
ConfigEntry.ConfigType
Data type of configuration entry.
|
Constructor and 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. This constructor will be removed in a future release.
|
ConfigEntry(java.lang.String name,
java.lang.String value,
ConfigEntry.ConfigSource source,
boolean isSensitive,
boolean isReadOnly,
java.util.List<ConfigEntry.ConfigSynonym> synonyms,
ConfigEntry.ConfigType type,
java.lang.String documentation)
Create a configuration with the provided values.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
documentation()
Return the config documentation.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isDefault()
Return whether the config value is the default or if it's been explicitly set.
|
boolean |
isReadOnly()
Return whether the config is read-only and cannot be updated.
|
boolean |
isSensitive()
Return whether the config value is sensitive.
|
java.lang.String |
name()
Return the config name.
|
ConfigEntry.ConfigSource |
source()
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.String |
toString()
Override toString to redact sensitive value.
|
ConfigEntry.ConfigType |
type()
Return the config data type.
|
java.lang.String |
value()
Return the value or null.
|
public ConfigEntry(java.lang.String name, java.lang.String value)
name
- the non-null config namevalue
- the config value or null@Deprecated public ConfigEntry(java.lang.String name, java.lang.String value, boolean isDefault, boolean isSensitive, boolean isReadOnly)
name
- the non-null config namevalue
- the config value or nullisDefault
- whether the config value is the default or if it's been explicitly setisSensitive
- whether the config value is sensitive, the broker never returns the value if it is sensitiveisReadOnly
- whether the config is read-only and cannot be updatedpublic ConfigEntry(java.lang.String name, java.lang.String value, ConfigEntry.ConfigSource source, boolean isSensitive, boolean isReadOnly, java.util.List<ConfigEntry.ConfigSynonym> synonyms, ConfigEntry.ConfigType type, java.lang.String documentation)
name
- the non-null config namevalue
- the config value or nullsource
- the source of this config entryisSensitive
- whether the config value is sensitive, the broker never returns the value if it is sensitiveisReadOnly
- whether the config is read-only and cannot be updatedsynonyms
- Synonym configs in order of precedencepublic java.lang.String name()
public java.lang.String value()
public ConfigEntry.ConfigSource source()
public boolean isDefault()
public boolean isSensitive()
public boolean isReadOnly()
public java.util.List<ConfigEntry.ConfigSynonym> synonyms()
DescribeConfigsOptions.includeSynonyms(boolean)
public ConfigEntry.ConfigType type()
public java.lang.String documentation()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object