Class DevServicesKafkaProcessor


  • public class DevServicesKafkaProcessor
    extends Object
    Starts a Kafka broker as dev service if needed.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static io.quarkus.kafka.client.deployment.DevServicesKafkaProcessor.KafkaDevServiceCfg cfg  
      (package private) static String DEV_SERVICE_LABEL
      Label to add to shared Dev Service for Kafka running in containers.
      (package private) static io.quarkus.deployment.builditem.DevServicesResultBuildItem.RunningDevService devService  
      (package private) static boolean first  
      (package private) static int KAFKA_PORT  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createTopicPartitions​(String bootstrapServers, io.quarkus.kafka.client.deployment.DevServicesKafkaProcessor.KafkaDevServiceCfg configuration)  
      static String getKafkaBootstrapServers()  
      io.quarkus.deployment.builditem.DevServicesResultBuildItem startKafkaDevService​(io.quarkus.deployment.builditem.DockerStatusBuildItem dockerStatusBuildItem, io.quarkus.deployment.builditem.LaunchModeBuildItem launchMode, KafkaBuildTimeConfig kafkaClientBuildTimeConfig, List<io.quarkus.deployment.builditem.DevServicesSharedNetworkBuildItem> devServicesSharedNetworkBuildItem, Optional<io.quarkus.deployment.console.ConsoleInstalledBuildItem> consoleInstalledBuildItem, io.quarkus.deployment.builditem.CuratedApplicationShutdownBuildItem closeBuildItem, io.quarkus.deployment.logging.LoggingSetupBuildItem loggingSetupBuildItem, io.quarkus.deployment.dev.devservices.GlobalDevServicesConfig devServicesConfig)  
    • Field Detail

      • DEV_SERVICE_LABEL

        static final String DEV_SERVICE_LABEL
        Label to add to shared Dev Service for Kafka running in containers. This allows other applications to discover the running service and use it instead of starting a new instance.
        See Also:
        Constant Field Values
      • devService

        static volatile io.quarkus.deployment.builditem.DevServicesResultBuildItem.RunningDevService devService
      • cfg

        static volatile io.quarkus.kafka.client.deployment.DevServicesKafkaProcessor.KafkaDevServiceCfg cfg
      • first

        static volatile boolean first
    • Constructor Detail

      • DevServicesKafkaProcessor

        public DevServicesKafkaProcessor()
    • Method Detail

      • startKafkaDevService

        public io.quarkus.deployment.builditem.DevServicesResultBuildItem startKafkaDevService​(io.quarkus.deployment.builditem.DockerStatusBuildItem dockerStatusBuildItem,
                                                                                               io.quarkus.deployment.builditem.LaunchModeBuildItem launchMode,
                                                                                               KafkaBuildTimeConfig kafkaClientBuildTimeConfig,
                                                                                               List<io.quarkus.deployment.builditem.DevServicesSharedNetworkBuildItem> devServicesSharedNetworkBuildItem,
                                                                                               Optional<io.quarkus.deployment.console.ConsoleInstalledBuildItem> consoleInstalledBuildItem,
                                                                                               io.quarkus.deployment.builditem.CuratedApplicationShutdownBuildItem closeBuildItem,
                                                                                               io.quarkus.deployment.logging.LoggingSetupBuildItem loggingSetupBuildItem,
                                                                                               io.quarkus.deployment.dev.devservices.GlobalDevServicesConfig devServicesConfig)
      • getKafkaBootstrapServers

        public static String getKafkaBootstrapServers()
      • createTopicPartitions

        public void createTopicPartitions​(String bootstrapServers,
                                          io.quarkus.kafka.client.deployment.DevServicesKafkaProcessor.KafkaDevServiceCfg configuration)