Package org.apache.kafka.common.config
Enum ConfigResource.Type
- java.lang.Object
-
- java.lang.Enum<ConfigResource.Type>
-
- org.apache.kafka.common.config.ConfigResource.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<ConfigResource.Type>
- Enclosing class:
- ConfigResource
public static enum ConfigResource.Type extends Enum<ConfigResource.Type>
Type of resource.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BROKER
BROKER_LOGGER
TOPIC
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConfigResource.Type
forId(byte id)
byte
id()
static ConfigResource.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConfigResource.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BROKER_LOGGER
public static final ConfigResource.Type BROKER_LOGGER
-
BROKER
public static final ConfigResource.Type BROKER
-
TOPIC
public static final ConfigResource.Type TOPIC
-
UNKNOWN
public static final ConfigResource.Type UNKNOWN
-
-
Method Detail
-
values
public static ConfigResource.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConfigResource.Type c : ConfigResource.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigResource.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
id
public byte id()
-
forId
public static ConfigResource.Type forId(byte id)
-
-