public static enum KafkaMetricDef.DefScope extends Enum<KafkaMetricDef.DefScope>
Enum Constant and Description |
---|
BROKER_ONLY |
COMMON_PARTITION |
COMMON_REPLICA |
Modifier and Type | Method and Description |
---|---|
static KafkaMetricDef.DefScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KafkaMetricDef.DefScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KafkaMetricDef.DefScope BROKER_ONLY
public static final KafkaMetricDef.DefScope COMMON_REPLICA
public static final KafkaMetricDef.DefScope COMMON_PARTITION
public static KafkaMetricDef.DefScope[] values()
for (KafkaMetricDef.DefScope c : KafkaMetricDef.DefScope.values()) System.out.println(c);
public static KafkaMetricDef.DefScope 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 null