Class RabbitStreamTemplateConfigurer
java.lang.Object
org.springframework.boot.autoconfigure.amqp.RabbitStreamTemplateConfigurer
Configure
RabbitStreamTemplate
with sensible defaults.- Since:
- 2.7.0
- Author:
- EddĂș MelĂ©ndez
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(org.springframework.rabbit.stream.producer.RabbitStreamTemplate template) Configure the specifiedRabbitStreamTemplate
.void
setMessageConverter
(org.springframework.amqp.support.converter.MessageConverter messageConverter) Set theMessageConverter
to use ornull
if the out-of-the-box converter should be used.void
setProducerCustomizer
(org.springframework.rabbit.stream.producer.ProducerCustomizer producerCustomizer) Set theProducerCustomizer
instances to use.void
setStreamMessageConverter
(org.springframework.rabbit.stream.support.converter.StreamMessageConverter streamMessageConverter) Set theStreamMessageConverter
to use ornull
if the out-of-the-box stream message converter should be used.
-
Constructor Details
-
RabbitStreamTemplateConfigurer
public RabbitStreamTemplateConfigurer()
-
-
Method Details
-
setMessageConverter
public void setMessageConverter(org.springframework.amqp.support.converter.MessageConverter messageConverter) Set theMessageConverter
to use ornull
if the out-of-the-box converter should be used.- Parameters:
messageConverter
- theMessageConverter
-
setStreamMessageConverter
public void setStreamMessageConverter(org.springframework.rabbit.stream.support.converter.StreamMessageConverter streamMessageConverter) Set theStreamMessageConverter
to use ornull
if the out-of-the-box stream message converter should be used.- Parameters:
streamMessageConverter
- theStreamMessageConverter
-
setProducerCustomizer
public void setProducerCustomizer(org.springframework.rabbit.stream.producer.ProducerCustomizer producerCustomizer) Set theProducerCustomizer
instances to use.- Parameters:
producerCustomizer
- the producer customizer
-
configure
public void configure(org.springframework.rabbit.stream.producer.RabbitStreamTemplate template) Configure the specifiedRabbitStreamTemplate
. The template can be further tuned and default settings can be overridden.- Parameters:
template
- theRabbitStreamTemplate
instance to configure
-