Files
spring-functions-catalog/consumer/spring-rabbit-consumer/README.adoc
2024-03-20 15:57:35 -04:00

24 lines
1.0 KiB
Plaintext

= RabbitMQ Consumer
A consumer that allows you to send messages to RabbitMQ.
== Beans for injection
The `RabbitConsumerConfiguration` auto-configuration provides the following bean:
`Function<Message<?>, Object> rabbitConsumer`
You can use `rabbitConsumer` as a qualifier when injecting.
== Configuration Options
All configuration properties are prefixed with `rabbit.consumer`.
For more information on the various options available, please see link:src/main/java/org/springframework/cloud/fn/consumer/rabbit/RabbitConsumerProperties.java[RabbitConsumerProperties].
A `ComponentCustomizer<AmqpOutboundChannelAdapterSpec>` bean can be added in the target project to provide any custom options for the `AmqpOutboundChannelAdapterSpec` configuration used by the `rabbitConsumer`.
== Other usage
See this https://github.com/spring-cloud/stream-applications/blob/master/applications/sink/rabbit-sink/README.adoc[README] where this consumer is used to create a Spring Cloud Stream application where it makes a RabbitMQ sink.