@InterfaceStability.Evolving public class ConfigEntry extends Object
AdminClient
for details.Constructor and Description |
---|
ConfigEntry(String name,
String value)
Create a configuration entry with the provided values.
|
ConfigEntry(String name,
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.
|
String |
name()
Return the config name.
|
String |
toString() |
String |
value()
Return the value or null.
|
public ConfigEntry(String name, String value)
name
- the non-null config namevalue
- the config value or nullpublic ConfigEntry(String name, 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 String name()
public String value()
public boolean isDefault()
public boolean isSensitive()
public boolean isReadOnly()