Class RabbitMQDevServicesBuildTimeConfig
- java.lang.Object
-
- io.quarkus.smallrye.reactivemessaging.rabbitmq.deployment.RabbitMQDevServicesBuildTimeConfig
-
public class RabbitMQDevServicesBuildTimeConfig extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRabbitMQDevServicesBuildTimeConfig.Bindingstatic classRabbitMQDevServicesBuildTimeConfig.Exchangestatic classRabbitMQDevServicesBuildTimeConfig.Queue
-
Field Summary
Fields Modifier and Type Field Description Map<String,RabbitMQDevServicesBuildTimeConfig.Binding>bindingsBindings that should be predefined after starting the RabbitMQ broker.Optional<Boolean>enabledIf Dev Services for RabbitMQ has been explicitly enabled or disabled.Map<String,RabbitMQDevServicesBuildTimeConfig.Exchange>exchangesExchanges that should be predefined after starting the RabbitMQ broker.OptionalInthttpPortOptional fixed port for the RabbitMQ management plugin.StringimageNameThe image to use.OptionalIntportOptional fixed port the dev service will listen to.Map<String,RabbitMQDevServicesBuildTimeConfig.Queue>queuesQueues that should be predefined after starting the RabbitMQ broker.StringserviceNameThe value of thequarkus-dev-service-rabbitmqlabel attached to the started container.booleansharedIndicates if the RabbitMQ broker managed by Quarkus Dev Services is shared.
-
Constructor Summary
Constructors Constructor Description RabbitMQDevServicesBuildTimeConfig()
-
-
-
Field Detail
-
enabled
@ConfigItem public Optional<Boolean> enabled
If Dev Services for RabbitMQ has been explicitly enabled or disabled. Dev Services are generally enabled by default, unless there is an existing configuration present. For RabbitMQ, Dev Services starts a broker unlessrabbitmq-hostorrabbitmq-portare set or if all the Reactive Messaging RabbitMQ channel are configured withhostorport.
-
port
@ConfigItem public OptionalInt port
Optional fixed port the dev service will listen to.If not defined, the port will be chosen randomly.
-
httpPort
@ConfigItem public OptionalInt httpPort
Optional fixed port for the RabbitMQ management plugin.If not defined, the port will be chosen randomly.
-
imageName
@ConfigItem(defaultValue="rabbitmq:3.9-management") public String imageName
The image to use. Note that only official RabbitMQ images are supported. Specifically, the image repository must end withrabbitmq.
-
shared
@ConfigItem(defaultValue="true") public boolean shared
Indicates if the RabbitMQ broker managed by Quarkus Dev Services is shared. When shared, Quarkus looks for running containers using label-based service discovery. If a matching container is found, it is used, and so a second one is not started. Otherwise, Dev Services for RabbitMQ starts a new container.The discovery uses the
quarkus-dev-service-rabbitmqlabel. The value is configured using theservice-nameproperty.Container sharing is only used in dev mode.
-
serviceName
@ConfigItem(defaultValue="rabbitmq") public String serviceName
The value of thequarkus-dev-service-rabbitmqlabel attached to the started container. This property is used whensharedis set totrue. In this case, before starting a container, Dev Services for RabbitMQ looks for a container with thequarkus-dev-service-rabbitmqlabel 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-rabbitmqlabel set to the specified value.This property is used when you need multiple shared RabbitMQ brokers.
-
exchanges
@ConfigItem public Map<String,RabbitMQDevServicesBuildTimeConfig.Exchange> exchanges
Exchanges that should be predefined after starting the RabbitMQ broker.
-
queues
@ConfigItem public Map<String,RabbitMQDevServicesBuildTimeConfig.Queue> queues
Queues that should be predefined after starting the RabbitMQ broker.
-
bindings
@ConfigItem public Map<String,RabbitMQDevServicesBuildTimeConfig.Binding> bindings
Bindings that should be predefined after starting the RabbitMQ broker.
-
-