public class RabbitStreamTemplateConfigurer extends Object
RabbitStreamTemplate
with sensible defaults.Constructor and Description |
---|
RabbitStreamTemplateConfigurer() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.springframework.rabbit.stream.producer.RabbitStreamTemplate template)
Configure the specified
RabbitStreamTemplate . |
void |
setMessageConverter(org.springframework.amqp.support.converter.MessageConverter messageConverter)
Set the
MessageConverter to use or null if the out-of-the-box
converter should be used. |
void |
setProducerCustomizer(org.springframework.rabbit.stream.producer.ProducerCustomizer producerCustomizer)
Set the
ProducerCustomizer instances to use. |
void |
setStreamMessageConverter(org.springframework.rabbit.stream.support.converter.StreamMessageConverter streamMessageConverter)
Set the
StreamMessageConverter to use or null if the out-of-the-box
stream message converter should be used. |
public void setMessageConverter(org.springframework.amqp.support.converter.MessageConverter messageConverter)
MessageConverter
to use or null
if the out-of-the-box
converter should be used.messageConverter
- the MessageConverter
public void setStreamMessageConverter(org.springframework.rabbit.stream.support.converter.StreamMessageConverter streamMessageConverter)
StreamMessageConverter
to use or null
if the out-of-the-box
stream message converter should be used.streamMessageConverter
- the StreamMessageConverter
public void setProducerCustomizer(org.springframework.rabbit.stream.producer.ProducerCustomizer producerCustomizer)
ProducerCustomizer
instances to use.producerCustomizer
- the producer customizerpublic void configure(org.springframework.rabbit.stream.producer.RabbitStreamTemplate template)
RabbitStreamTemplate
. The template can be further
tuned and default settings can be overridden.template
- the RabbitStreamTemplate
instance to configure