Package org.apache.kafka.clients.admin
Enum AlterConfigOp.OpType
- java.lang.Object
-
- java.lang.Enum<AlterConfigOp.OpType>
-
- org.apache.kafka.clients.admin.AlterConfigOp.OpType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AlterConfigOp.OpType>
- Enclosing class:
- AlterConfigOp
public static enum AlterConfigOp.OpType extends java.lang.Enum<AlterConfigOp.OpType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPEND
(For list-type configuration entries only.) Add the specified values to the current value of the configuration entry.DELETE
Revert the configuration entry to the default value (possibly null).SET
Set the value of the configuration entry.SUBTRACT
(For list-type configuration entries only.) Removes the specified values from the current value of the configuration entry.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AlterConfigOp.OpType
forId(byte id)
byte
id()
static AlterConfigOp.OpType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AlterConfigOp.OpType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SET
public static final AlterConfigOp.OpType SET
Set the value of the configuration entry.
-
DELETE
public static final AlterConfigOp.OpType DELETE
Revert the configuration entry to the default value (possibly null).
-
APPEND
public static final AlterConfigOp.OpType APPEND
(For list-type configuration entries only.) Add the specified values to the current value of the configuration entry. If the configuration value has not been set, adds to the default value.
-
SUBTRACT
public static final AlterConfigOp.OpType SUBTRACT
(For list-type configuration entries only.) Removes the specified values from the current value of the configuration entry. It is legal to remove values that are not currently in the configuration entry. Removing all entries from the current configuration value leaves an empty list and does NOT revert to the default value of the entry.
-
-
Method Detail
-
values
public static AlterConfigOp.OpType[] 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 (AlterConfigOp.OpType c : AlterConfigOp.OpType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlterConfigOp.OpType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
id
public byte id()
-
forId
public static AlterConfigOp.OpType forId(byte id)
-
-