public class RabbitTemplateConfigurer extends Object
RabbitTemplate with sensible defaults.| Constructor and Description |
|---|
RabbitTemplateConfigurer()
Deprecated.
since 2.6.0 for removal in 2.8.0 in favor of
RabbitTemplateConfigurer(RabbitProperties) |
RabbitTemplateConfigurer(RabbitProperties rabbitProperties)
Creates a new configurer that will use the given
rabbitProperties. |
| 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() |
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)
Deprecated.
since 2.6.0 for removal in 2.8.0 in favor of
RabbitTemplateConfigurer(RabbitProperties) |
void |
setRetryTemplateCustomizers(List<RabbitRetryTemplateCustomizer> retryTemplateCustomizers)
Set the
RabbitRetryTemplateCustomizer instances to use. |
@Deprecated public RabbitTemplateConfigurer()
RabbitTemplateConfigurer(RabbitProperties)public RabbitTemplateConfigurer(RabbitProperties rabbitProperties)
rabbitProperties.rabbitProperties - properties to usepublic 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 MessageConverterpublic void setRetryTemplateCustomizers(List<RabbitRetryTemplateCustomizer> retryTemplateCustomizers)
RabbitRetryTemplateCustomizer instances to use.retryTemplateCustomizers - the retry template customizers@Deprecated protected void setRabbitProperties(RabbitProperties rabbitProperties)
RabbitTemplateConfigurer(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