public static enum ConfigDef.Type extends Enum<ConfigDef.Type>
Enum Constant and Description |
---|
BOOLEAN
Used for boolean values.
|
CLASS
Used for values that implement a Kafka interface.
|
DOUBLE
Used for numerical values within the Java Double range.
|
INT
Used for numerical values within the Java Integer range.
|
LIST
Used for list values.
|
LONG
Used for numerical values within the Java Long range.
|
PASSWORD
Used for string values containing sensitive data such as a password or key.
|
SHORT
Used for numerical values within the Java Short range.
|
STRING
Used for string values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSensitive()
Whether this type contains sensitive data such as a password or key.
|
static ConfigDef.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfigDef.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigDef.Type BOOLEAN
true
or false
(this is not case-sensitive), otherwise a ConfigException
is
thrown.public static final ConfigDef.Type STRING
ConfigException
is
thrown.public static final ConfigDef.Type INT
ConfigException
is thrown.public static final ConfigDef.Type SHORT
ConfigException
is thrown.public static final ConfigDef.Type LONG
ConfigException
is thrown.public static final ConfigDef.Type DOUBLE
ConfigException
is thrown.public static final ConfigDef.Type LIST
ConfigException
is thrown. When the value is provided as a String it must use commas to separate the
different entries (for example: first-entry, second-entry
) and an empty String maps to an empty List.public static final ConfigDef.Type CLASS
ConfigException
is thrown. When the value is provided as a String it must
be the binary name of the Class.public static final ConfigDef.Type PASSWORD
ConfigException
is thrown.public static ConfigDef.Type[] values()
for (ConfigDef.Type c : ConfigDef.Type.values()) System.out.println(c);
public static ConfigDef.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isSensitive()
PASSWORD