Interface ControllerConfigUpdater

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ControllerConfigUpdater
Callback that applies stripped config changes via the Kafka controller.

Passed by the caller (e.g. ControllerApis) into OdysseyManager.handleIncrementalAlterConfigsWithOdyssey(Map, Map, KafkaPrincipal, boolean, ControllerConfigUpdater, Consumer, ExternalSchemaUpdater). The Odyssey handler strips association configs before invoking this, and passes validateOnly explicitly so the controller call honours the same flag as the rest of the pipeline.

  • Method Summary

    Modifier and Type
    Method
    Description
    CompletableFuture<Map<org.apache.kafka.common.config.ConfigResource, org.apache.kafka.common.requests.ApiError>>
    apply(Map<org.apache.kafka.common.config.ConfigResource, Map<String, Map.Entry<org.apache.kafka.clients.admin.AlterConfigOp.OpType, String>>> configChanges, boolean validateOnly)
     
  • Method Details

    • apply

      CompletableFuture<Map<org.apache.kafka.common.config.ConfigResource, org.apache.kafka.common.requests.ApiError>> apply(Map<org.apache.kafka.common.config.ConfigResource, Map<String, Map.Entry<org.apache.kafka.clients.admin.AlterConfigOp.OpType, String>>> configChanges, boolean validateOnly)