public class RabbitTemplateConfigurer extends Object
RabbitTemplate with sensible defaults.| Constructor and Description |
|---|
RabbitTemplateConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.springframework.amqp.rabbit.core.RabbitTemplate template,
org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
Configure the specified
RabbitTemplate. |
protected RabbitProperties |
getRabbitProperties() |
protected 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. |
protected void |
setRabbitProperties(RabbitProperties rabbitProperties)
Set the
RabbitProperties to use. |
protected void |
setRetryTemplateCustomizers(List<RabbitRetryTemplateCustomizer> retryTemplateCustomizers)
Set the
RabbitRetryTemplateCustomizer instances to use. |
protected 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 MessageConverterprotected void setRetryTemplateCustomizers(List<RabbitRetryTemplateCustomizer> retryTemplateCustomizers)
RabbitRetryTemplateCustomizer instances to use.retryTemplateCustomizers - the retry template customizersprotected void setRabbitProperties(RabbitProperties rabbitProperties)
RabbitProperties to use.rabbitProperties - the RabbitPropertiesprotected final RabbitProperties getRabbitProperties()
public void configure(org.springframework.amqp.rabbit.core.RabbitTemplate template,
org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
RabbitTemplate. The template can be further tuned
and default settings can be overridden.template - the RabbitTemplate instance to configureconnectionFactory - the ConnectionFactory to use