public class ConfigEntry extends Object
| Constructor and Description |
|---|
ConfigEntry()
Constructor
|
ConfigEntry(JsonObject json)
Constructor (from JSON representation)
|
ConfigEntry(String name,
String value)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
org.apache.kafka.clients.admin.ConfigEntry.ConfigSource |
getSource() |
List<ConfigSynonym> |
getSynonyms() |
String |
getValue() |
boolean |
isDefault() |
boolean |
isReadOnly() |
boolean |
isSensitive() |
ConfigEntry |
setDefault(boolean isDefault)
Set whether the config value is the default or if it's been explicitly set
|
ConfigEntry |
setName(String name)
Set the config name
|
ConfigEntry |
setReadOnly(boolean readOnly)
Set whether the config is read-only and cannot be updated
|
ConfigEntry |
setSensitive(boolean isSensitive)
Set whether the config value is sensitive.
|
ConfigEntry |
setSource(org.apache.kafka.clients.admin.ConfigEntry.ConfigSource source)
Set the source of this configuration entry
|
ConfigEntry |
setSynonyms(List<ConfigSynonym> synonyms)
Set all config values that may be used as the value of this config along with their source, in the order of precedence
|
ConfigEntry |
setValue(String value)
Set the value or null.
|
JsonObject |
toJson()
Convert object to JSON representation
|
String |
toString() |
public ConfigEntry()
public ConfigEntry(String name, String value)
name - the non-null config namevalue - the config value or nullpublic ConfigEntry(JsonObject json)
json - JSON representationpublic String getName()
public ConfigEntry setName(String name)
name - the config name.public boolean isDefault()
public ConfigEntry setDefault(boolean isDefault)
isDefault - whether the config value is the default or if it's been explicitly setpublic boolean isReadOnly()
public ConfigEntry setReadOnly(boolean readOnly)
readOnly - whether the config is read-only and cannot be updatedpublic boolean isSensitive()
public ConfigEntry setSensitive(boolean isSensitive)
isSensitive - whether the config value is sensitive. The value is always set to null by the broker if the config value is sensitivepublic org.apache.kafka.clients.admin.ConfigEntry.ConfigSource getSource()
public ConfigEntry setSource(org.apache.kafka.clients.admin.ConfigEntry.ConfigSource source)
source - the source of this configuration entrypublic List<ConfigSynonym> getSynonyms()
public ConfigEntry setSynonyms(List<ConfigSynonym> synonyms)
synonyms - all config values that may be used as the value of this config along with their source, in the order of precedencepublic String getValue()
public ConfigEntry setValue(String value)
value - the value or null. Null is returned if the config is unset or if isSensitive is truepublic JsonObject toJson()
Copyright © 2022 Eclipse. All rights reserved.