Interface KafkaDevServicesBuildTimeConfig
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionEnvironment variables that are passed to the container.default Stringenabled()If Dev Services for Kafka has been explicitly enabled or disabled.The Kafka container image to use.port()Optional fixed port the dev service will listen to.provider()Kafka dev service container type.redpanda()Allows configuring the Redpanda broker.The value of thequarkus-dev-service-kafkalabel attached to the started container.booleanshared()Indicates if the Kafka broker managed by Quarkus Dev Services is shared.strimzi()Allows configuring the Strimzi broker.The topic-partition pairs to create in the Dev Services Kafka broker.Timeout for admin client calls used in topic creation.
-
Method Details
-
enabled
If Dev Services for Kafka has been explicitly enabled or disabled. Dev Services are generally enabled by default, unless there is an existing configuration present. For Kafka, Dev Services starts a broker unlesskafka.bootstrap.serversis set or if all the Reactive Messaging Kafka channel are configured with abootstrap.servers. -
port
Optional fixed port the dev service will listen to.If not defined, the port will be chosen randomly.
-
provider
Kafka dev service container type.Redpanda, Strimzi and kafka-native container providers are supported. Default is redpanda.
For Redpanda: See https://docs.redpanda.com/current/get-started/quick-start/ and https://hub.docker.com/r/redpandadata/redpanda
For Strimzi: See https://github.com/strimzi/test-container and https://quay.io/repository/strimzi-test-container/test-container
For Kafka Native: See https://github.com/ozangunalp/kafka-native and https://quay.io/repository/ogunalp/kafka-native
Note that Strimzi and Kafka Native images are launched in Kraft mode.
-
imageName
The Kafka container image to use.Dependent on the provider.
-
serviceName
The value of thequarkus-dev-service-kafkalabel attached to the started container. This property is used whensharedis set totrue. In this case, before starting a container, Dev Services for Kafka looks for a container with thequarkus-dev-service-kafkalabel set to the configured value. If found, it will use this container instead of starting a new one. Otherwise, it starts a new container with thequarkus-dev-service-kafkalabel set to the specified value.This property is used when you need multiple shared Kafka brokers.
-
topicPartitions
The topic-partition pairs to create in the Dev Services Kafka broker. After the broker is started, given topics with partitions are created, skipping already existing topics. For example,quarkus.kafka.devservices.topic-partitions.my-topic=2will create a topic namedtestwith 2 partitions.The topic creation will not try to re-partition existing topics with different number of partitions.
-
topicPartitionsTimeout
Timeout for admin client calls used in topic creation.Defaults to 2 seconds.
-
containerEnv
Environment variables that are passed to the container. -
redpanda
RedpandaBuildTimeConfig redpanda()Allows configuring the Redpanda broker. -
strimzi
StrimziBuildTimeConfig strimzi()Allows configuring the Strimzi broker. -
effectiveImageName
- Returns:
- the image name if set, otherwise the default image name for the provider.
-