Class AmqpPollableMessageChannelSpec<S extends AmqpPollableMessageChannelSpec<S,T>,T extends AbstractAmqpChannel>  
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,C>
 
org.springframework.integration.dsl.MessageChannelSpec<S,T>
 
org.springframework.integration.amqp.dsl.AmqpPollableMessageChannelSpec<S,T> 
- Type Parameters:
- S- the target- AmqpPollableMessageChannelSpecimplementation type.
- T- the target channel type.
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<T>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle,- ComponentsRegistration
- Direct Known Subclasses:
- AmqpMessageChannelSpec
public class AmqpPollableMessageChannelSpec<S extends AmqpPollableMessageChannelSpec<S,T>,T extends AbstractAmqpChannel>  
extends MessageChannelSpec<S,T> 
A 
MessageChannelSpec for a AbstractAmqpChannels.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell, Artem Vozhdayenko
- 
Field SummaryFieldsFields inherited from class org.springframework.integration.dsl.MessageChannelSpecchannelFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAmqpPollableMessageChannelSpec(ConnectionFactory connectionFactory) 
- 
Method SummaryModifier and TypeMethodDescriptionamqpMessageConverter(MessageConverter messageConverter) channelTransacted(boolean channelTransacted) ConfigurechannelTransactedon both theRabbitTemplate(for sends) andSimpleMessageListenerContainer(for receives) when using Spring Integration 4.0.Configure the delivery mode for messages that don't have anAmqpHeaders.DELIVERY_MODEheader.protected TdoGet()extractPayload(boolean extract) Configure whether normal spring-messaging to AMQP message mapping is enabled.headersMappedLast(boolean headersLast) protected SConfigure the component identifier.inboundHeaderMapper(AmqpHeaderMapper mapper) Configure the inbound header mapper to use whenextractPayload(boolean)is true.messagePropertiesConverter(MessagePropertiesConverter messagePropertiesConverter) ConfiguremessagePropertiesConverteron both theRabbitTemplate(for sends) andSimpleMessageListenerContainer(for receives).outboundHeaderMapper(AmqpHeaderMapper mapper) Configure the outbound header mapper to use whenextractPayload(boolean)is true.Also implicitly sets theid(String)(if not explicitly set).templateChannelTransacted(boolean channelTransacted) ConfigurechannelTransactedon theRabbitTemplateused when sending messages to the channel.Methods inherited from class org.springframework.integration.dsl.MessageChannelSpecdatatype, getComponentsToRegister, interceptor, messageConverter, wireTap, wireTap, wireTapMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, get, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Field Details- 
amqpChannelFactoryBean
 
- 
- 
Constructor Details- 
AmqpPollableMessageChannelSpec
 
- 
- 
Method Details- 
idDescription copied from class:IntegrationComponentSpecConfigure the component identifier. Used as thebeanNameto register the bean in the application context for this component.- Overrides:
- idin class- IntegrationComponentSpec<S extends AmqpPollableMessageChannelSpec<S,- T>, - T extends AbstractAmqpChannel> 
- Parameters:
- id- the id.
- Returns:
- the spec.
 
- 
queueNameAlso implicitly sets theid(String)(if not explicitly set).- Parameters:
- queueName- the queueName.
- Returns:
- the spec.
- See Also:
 
- 
encoding- Parameters:
- encoding- the encoding.
- Returns:
- the spec.
- See Also:
 
- 
amqpMessageConverter- Parameters:
- messageConverter- the messageConverter.
- Returns:
- the spec.
- See Also:
 
- 
channelTransactedConfigurechannelTransactedon both theRabbitTemplate(for sends) andSimpleMessageListenerContainer(for receives) when using Spring Integration 4.0. When using Spring Integration 4.1, only the container is configured. SeetemplateChannelTransacted(boolean).- Parameters:
- channelTransacted- the channelTransacted.
- Returns:
- the spec.
- See Also:
 
- 
templateChannelTransactedConfigurechannelTransactedon theRabbitTemplateused when sending messages to the channel. Only applies when Spring Integration 4.1 or greater is being used. Otherwise, seechannelTransacted(boolean).- Parameters:
- channelTransacted- the channelTransacted.
- Returns:
- the spec.
- See Also:
 
- 
messagePropertiesConverterConfiguremessagePropertiesConverteron both theRabbitTemplate(for sends) andSimpleMessageListenerContainer(for receives).- Parameters:
- messagePropertiesConverter- the messagePropertiesConverter.
- Returns:
- the spec.
- See Also:
 
- 
defaultDeliveryModeConfigure the delivery mode for messages that don't have anAmqpHeaders.DELIVERY_MODEheader. Default isMessageDeliveryMode.PERSISTENT.- Parameters:
- mode- the mode.
- Returns:
- the spec.
 
- 
extractPayloadConfigure whether normal spring-messaging to AMQP message mapping is enabled. Default false.- Parameters:
- extract- true to enable mapping.
- Returns:
- the spec.
- See Also:
 
- 
outboundHeaderMapperConfigure the outbound header mapper to use whenextractPayload(boolean)is true. Defaults to aDefaultAmqpHeaderMapper.- Parameters:
- mapper- the mapper.
- Returns:
- the spec.
- See Also:
 
- 
inboundHeaderMapperConfigure the inbound header mapper to use whenextractPayload(boolean)is true. Defaults to aDefaultAmqpHeaderMapper.- Parameters:
- mapper- the mapper.
- Returns:
- the spec.
- See Also:
 
- 
headersMappedLast- Parameters:
- headersLast- true to map headers last.
- Returns:
- the spec.
- See Also:
 
- 
doGet- Overrides:
- doGetin class- MessageChannelSpec<S extends AmqpPollableMessageChannelSpec<S,- T>, - T extends AbstractAmqpChannel> 
 
 
-