Class DevServicesKafkaProcessor
java.lang.Object
io.quarkus.kafka.client.deployment.DevServicesKafkaProcessor
Starts a Kafka broker as dev service if needed.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final StringLabel to add to shared Dev Service for Kafka running in containers.(package private) static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateTopicPartitions(String bootstrapServers, KafkaDevServicesBuildTimeConfig configuration) voidlogStartedAndCreateTopicPartitions(String bootstrapServers, KafkaDevServicesBuildTimeConfig configuration) io.quarkus.deployment.builditem.DevServicesResultBuildItemstartKafkaDevService(io.quarkus.deployment.builditem.DockerStatusBuildItem dockerStatusBuildItem, io.quarkus.deployment.builditem.DevServicesComposeProjectBuildItem compose, io.quarkus.deployment.builditem.LaunchModeBuildItem launchMode, KafkaBuildTimeConfig kafkaClientBuildTimeConfig, List<io.quarkus.deployment.builditem.DevServicesSharedNetworkBuildItem> sharedNetwork, io.quarkus.deployment.dev.devservices.DevServicesConfig devServicesConfig)
-
Field Details
-
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:
-
KAFKA_PORT
static final int KAFKA_PORT- See Also:
-
-
Constructor Details
-
DevServicesKafkaProcessor
public DevServicesKafkaProcessor()
-
-
Method Details
-
startKafkaDevService
public io.quarkus.deployment.builditem.DevServicesResultBuildItem startKafkaDevService(io.quarkus.deployment.builditem.DockerStatusBuildItem dockerStatusBuildItem, io.quarkus.deployment.builditem.DevServicesComposeProjectBuildItem compose, io.quarkus.deployment.builditem.LaunchModeBuildItem launchMode, KafkaBuildTimeConfig kafkaClientBuildTimeConfig, List<io.quarkus.deployment.builditem.DevServicesSharedNetworkBuildItem> sharedNetwork, io.quarkus.deployment.dev.devservices.DevServicesConfig devServicesConfig) -
logStartedAndCreateTopicPartitions
public void logStartedAndCreateTopicPartitions(String bootstrapServers, KafkaDevServicesBuildTimeConfig configuration) -
createTopicPartitions
public void createTopicPartitions(String bootstrapServers, KafkaDevServicesBuildTimeConfig configuration)
-