Package io.vertx.kafka.admin
Class ConfigEntry
java.lang.Object
io.vertx.kafka.admin.ConfigEntry
A class representing a configuration entry containing name, value and additional metadata
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorConfigEntry(JsonObject json) Constructor (from JSON representation)ConfigEntry(String name, String value) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetName()org.apache.kafka.clients.admin.ConfigEntry.ConfigSourcegetValue()booleanbooleanbooleansetDefault(boolean isDefault) Set whether the config value is the default or if it's been explicitly setSet the config namesetReadOnly(boolean readOnly) Set whether the config is read-only and cannot be updatedsetSensitive(boolean isSensitive) Set whether the config value is sensitive.setSource(org.apache.kafka.clients.admin.ConfigEntry.ConfigSource source) Set the source of this configuration entrysetSynonyms(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 precedenceSet the value or null.toJson()Convert object to JSON representationtoString()
-
Constructor Details
-
ConfigEntry
public ConfigEntry()Constructor -
ConfigEntry
Constructor- Parameters:
name- the non-null config namevalue- the config value or null
-
ConfigEntry
Constructor (from JSON representation)- Parameters:
json- JSON representation
-
-
Method Details
-
getName
- Returns:
- the config name
-
setName
Set the config name- Parameters:
name- the config name.- Returns:
- current instance of the class to be fluent
-
isDefault
public boolean isDefault()- Returns:
- whether the config value is the default or if it's been explicitly set
-
setDefault
Set whether the config value is the default or if it's been explicitly set- Parameters:
isDefault- whether the config value is the default or if it's been explicitly set- Returns:
- current instance of the class to be fluent
-
isReadOnly
public boolean isReadOnly()- Returns:
- whether the config is read-only and cannot be updated
-
setReadOnly
Set whether the config is read-only and cannot be updated- Parameters:
readOnly- whether the config is read-only and cannot be updated- Returns:
- current instance of the class to be fluent
-
isSensitive
public boolean isSensitive()- Returns:
- whether the config value is sensitive. The value is always set to null by the broker if the config value is sensitive
-
setSensitive
Set whether the config value is sensitive. The value is always set to null by the broker if the config value is sensitive- Parameters:
isSensitive- whether the config value is sensitive. The value is always set to null by the broker if the config value is sensitive- Returns:
- current instance of the class to be fluent
-
getSource
public org.apache.kafka.clients.admin.ConfigEntry.ConfigSource getSource()- Returns:
- the source of this configuration entry
-
setSource
Set the source of this configuration entry- Parameters:
source- the source of this configuration entry- Returns:
- current instance of the class to be fluent
-
getSynonyms
- Returns:
- all config values that may be used as the value of this config along with their source, in the order of precedence
-
setSynonyms
Set all config values that may be used as the value of this config along with their source, in the order of precedence- Parameters:
synonyms- all config values that may be used as the value of this config along with their source, in the order of precedence- Returns:
- current instance of the class to be fluent
-
getValue
- Returns:
- the value or null. Null is returned if the config is unset or if isSensitive is true
-
setValue
Set the value or null. Null is returned if the config is unset or if isSensitive is true- Parameters:
value- the value or null. Null is returned if the config is unset or if isSensitive is true- Returns:
- current instance of the class to be fluent
-
toJson
Convert object to JSON representation- Returns:
- JSON representation
-
toString
-