THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Public Interfaces
Code Block | ||
---|---|---|
| ||
@InterfaceStability.Evolving public class AlterConfigOp { public enum OpType { SET((byte) 0), DELETE((byte) 1), APPEND((byte) 2), SUBTRACT((byte) 3); private static final Map<Byte, OpType> OP_TYPES = Collections.unmodifiableMap( Arrays.stream(values()).collect(Collectors.toMap(OpType::id, Function.identity())) ); private final byte id; OpType(final byte id) { this.id = id; } public byte id() { return id; } public static OpType forId(final byte id) { return OP_TYPES.get(id); } } private final ConfigEntry configEntry; private final OpType opType; public AlterConfigOp(ConfigEntry configEntry, OpType operationType) { this.configEntry = configEntry; this.opType = operationType; } public ConfigEntry configEntry() { return configEntry; }; public OpType opType() { return opType; }; } public AlterConfigsResult incrementalAlterConfigs( Map<ConfigResource, Collection<AlterConfigOp>> configs, final AlterConfigsOptions options); |
...