@InterfaceStability.Evolving public class ConfigEntry extends java.lang.Object
AdminClient
for details.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)
Create a configuration with the provided values.
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
toString() |
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 nullpublic 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 java.lang.String name()
public java.lang.String value()
public boolean isDefault()
public boolean isSensitive()
public boolean isReadOnly()
public java.lang.String toString()
toString
in class java.lang.Object