S - the target AmqpPollableMessageChannelSpec implementation type.public class AmqpPollableMessageChannelSpec<S extends AmqpPollableMessageChannelSpec<S>> extends MessageChannelSpec<S,org.springframework.integration.amqp.channel.AbstractAmqpChannel>
MessageChannelSpec for a AbstractAmqpChannels.| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.integration.amqp.config.AmqpChannelFactoryBean |
amqpChannelFactoryBean |
channellogger, PARSER, target| Modifier and Type | Method and Description |
|---|---|
S |
amqpMessageConverter(org.springframework.amqp.support.converter.MessageConverter messageConverter) |
S |
channelTransacted(boolean channelTransacted)
Configure
channelTransacted on both the
RabbitTemplate (for sends) and
SimpleMessageListenerContainer
(for receives) when using Spring Integration 4.0. |
S |
defaultDeliveryMode(org.springframework.amqp.core.MessageDeliveryMode mode)
Configure the delivery mode for messages that don't have an
AmqpHeaders.DELIVERY_MODE header. |
protected org.springframework.integration.amqp.channel.AbstractAmqpChannel |
doGet() |
S |
encoding(java.lang.String encoding) |
S |
extractPayload(boolean extract)
Configure whether normal spring-messaging to AMQP message mapping is enabled.
|
protected S |
id(java.lang.String id)
Configure the component identifier.
|
S |
inboundHeaderMapper(org.springframework.integration.amqp.support.AmqpHeaderMapper mapper)
Configure the inbound header mapper to use when
extractPayload(boolean)
is true. |
S |
messagePropertiesConverter(org.springframework.amqp.rabbit.support.MessagePropertiesConverter messagePropertiesConverter)
Configure
messagePropertiesConverter on both the
RabbitTemplate (for sends) and
SimpleMessageListenerContainer
(for receives). |
S |
outboundHeaderMapper(org.springframework.integration.amqp.support.AmqpHeaderMapper mapper)
Configure the outbound header mapper to use when
extractPayload(boolean)
is true. |
S |
queueName(java.lang.String queueName)
Also implicitly sets the
id(String) (if not explicitly set). |
S |
templateChannelTransacted(boolean channelTransacted)
Configure
channelTransacted on the
RabbitTemplate used when sending
messages to the channel. |
datatype, getComponentsToRegister, interceptor, messageConverter, wireTap, wireTap, wireTap_this, get, getId, getObject, getObjectType, isSingletonprotected final org.springframework.integration.amqp.config.AmqpChannelFactoryBean amqpChannelFactoryBean
protected S id(java.lang.String id)
IntegrationComponentSpecbeanName to register the
bean in the application context for this component.id in class MessageChannelSpec<S extends AmqpPollableMessageChannelSpec<S>,org.springframework.integration.amqp.channel.AbstractAmqpChannel>id - the id.public S queueName(java.lang.String queueName)
id(String) (if not explicitly set).queueName - the queueName.AmqpChannelFactoryBean.setQueueName(String)public S encoding(java.lang.String encoding)
encoding - the encoding.RabbitTemplate.setEncoding(String)public S amqpMessageConverter(org.springframework.amqp.support.converter.MessageConverter messageConverter)
messageConverter - the messageConverter.RabbitTemplate.setMessageConverter(MessageConverter)public S channelTransacted(boolean channelTransacted)
channelTransacted on both the
RabbitTemplate (for sends) and
SimpleMessageListenerContainer
(for receives) when using Spring Integration 4.0. When using Spring Integration
4.1, only the container is configured. See templateChannelTransacted(boolean).channelTransacted - the channelTransacted.RabbitAccessor.setChannelTransacted(boolean),
RabbitAccessor.setChannelTransacted(boolean)public S templateChannelTransacted(boolean channelTransacted)
channelTransacted on the
RabbitTemplate used when sending
messages to the channel. Only applies when Spring Integration 4.1 or greater is
being used. Otherwise, see channelTransacted(boolean).channelTransacted - the channelTransacted.RabbitAccessor.setChannelTransacted(boolean)public S messagePropertiesConverter(org.springframework.amqp.rabbit.support.MessagePropertiesConverter messagePropertiesConverter)
messagePropertiesConverter on both the
RabbitTemplate (for sends) and
SimpleMessageListenerContainer
(for receives).messagePropertiesConverter - the messagePropertiesConverter.RabbitTemplate.setMessagePropertiesConverter(org.springframework.amqp.rabbit.support.MessagePropertiesConverter),
SimpleMessageListenerContainer.setMessagePropertiesConverter(org.springframework.amqp.rabbit.support.MessagePropertiesConverter)public S defaultDeliveryMode(org.springframework.amqp.core.MessageDeliveryMode mode)
AmqpHeaders.DELIVERY_MODE header. Default is MessageDeliveryMode.PERSISTENT.mode - the mode.public S extractPayload(boolean extract)
extract - true to enable mapping.outboundHeaderMapper(AmqpHeaderMapper),
inboundHeaderMapper(AmqpHeaderMapper)public S outboundHeaderMapper(org.springframework.integration.amqp.support.AmqpHeaderMapper mapper)
extractPayload(boolean)
is true. Defaults to a DefaultAmqpHeaderMapper.mapper - the mapper.extractPayload(boolean)public S inboundHeaderMapper(org.springframework.integration.amqp.support.AmqpHeaderMapper mapper)
extractPayload(boolean)
is true. Defaults to a DefaultAmqpHeaderMapper.mapper - the mapper.extractPayload(boolean)protected org.springframework.integration.amqp.channel.AbstractAmqpChannel doGet()
doGet in class MessageChannelSpec<S extends AmqpPollableMessageChannelSpec<S>,org.springframework.integration.amqp.channel.AbstractAmqpChannel>