Class AlterConfigOp

java.lang.Object
org.apache.kafka.clients.admin.AlterConfigOp

public class AlterConfigOp extends Object
A class representing an alter configuration entry containing name, value and operation type.

Note for Broker Logger Configuration:
When altering broker logger levels (using ConfigResource.Type.BROKER_LOGGER), it is strongly recommended to use log level constants from LogLevelConfig instead of string literals. This ensures compatibility with Kafka's log level validation and avoids potential configuration errors.

Example:

 Recommended approach:
 new AlterConfigOp(new ConfigEntry(loggerName, LogLevelConfig.DEBUG_LOG_LEVEL), OpType.SET)

 Avoid this:
 new AlterConfigOp(new ConfigEntry(loggerName, "DEBUG"), OpType.SET)