T
- the container factory type.public abstract class AbstractRabbitListenerContainerFactoryConfigurer<T extends org.springframework.amqp.rabbit.config.AbstractRabbitListenerContainerFactory<?>> extends Object
RabbitListenerContainerFactory
with sensible defaults.Modifier | Constructor and Description |
---|---|
protected |
AbstractRabbitListenerContainerFactoryConfigurer()
Deprecated.
since 2.6.0 for removal in 3.0.0 in favor of
AbstractRabbitListenerContainerFactoryConfigurer(RabbitProperties) |
protected |
AbstractRabbitListenerContainerFactoryConfigurer(RabbitProperties rabbitProperties)
Creates a new configurer that will use the given
rabbitProperties . |
Modifier and Type | Method and Description |
---|---|
abstract void |
configure(T factory,
org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
Configure the specified rabbit listener container factory.
|
protected void |
configure(T factory,
org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory,
RabbitProperties.AmqpContainer configuration) |
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 |
setMessageRecoverer(org.springframework.amqp.rabbit.retry.MessageRecoverer messageRecoverer)
Set the
MessageRecoverer to use or null to rely on the default. |
protected void |
setRabbitProperties(RabbitProperties rabbitProperties)
Deprecated.
since 2.6.0 for removal in 3.0.0 in favor of
AbstractRabbitListenerContainerFactoryConfigurer(RabbitProperties) |
protected void |
setRetryTemplateCustomizers(List<RabbitRetryTemplateCustomizer> retryTemplateCustomizers)
Set the
RabbitRetryTemplateCustomizer instances to use. |
@Deprecated protected AbstractRabbitListenerContainerFactoryConfigurer()
AbstractRabbitListenerContainerFactoryConfigurer(RabbitProperties)
protected AbstractRabbitListenerContainerFactoryConfigurer(RabbitProperties rabbitProperties)
rabbitProperties
.rabbitProperties
- properties to useprotected 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
protected void setMessageRecoverer(org.springframework.amqp.rabbit.retry.MessageRecoverer messageRecoverer)
MessageRecoverer
to use or null
to rely on the default.messageRecoverer
- the MessageRecoverer
protected void setRetryTemplateCustomizers(List<RabbitRetryTemplateCustomizer> retryTemplateCustomizers)
RabbitRetryTemplateCustomizer
instances to use.retryTemplateCustomizers
- the retry template customizers@Deprecated protected void setRabbitProperties(RabbitProperties rabbitProperties)
AbstractRabbitListenerContainerFactoryConfigurer(RabbitProperties)
RabbitProperties
to use.rabbitProperties
- the RabbitProperties
protected final RabbitProperties getRabbitProperties()
public abstract void configure(T factory, org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
factory
- the AbstractRabbitListenerContainerFactory
instance to
configureconnectionFactory
- the ConnectionFactory
to useprotected void configure(T factory, org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory, RabbitProperties.AmqpContainer configuration)