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 targetAmqpPollableMessageChannelSpecimplementation 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 Summary
FieldsFields inherited from class org.springframework.integration.dsl.MessageChannelSpec
channelFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
logger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAmqpPollableMessageChannelSpec(ConnectionFactory connectionFactory) -
Method Summary
Modifier 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.MessageChannelSpec
datatype, getComponentsToRegister, interceptor, messageConverter, wireTap, wireTap, wireTapMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Field Details
-
amqpChannelFactoryBean
-
-
Constructor Details
-
AmqpPollableMessageChannelSpec
-
-
Method Details
-
id
Description copied from class:IntegrationComponentSpecConfigure the component identifier. Used as thebeanNameto register the bean in the application context for this component.- Overrides:
idin classIntegrationComponentSpec<S extends AmqpPollableMessageChannelSpec<S,T>, T extends AbstractAmqpChannel> - Parameters:
id- the id.- Returns:
- the spec.
-
queueName
Also 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:
-
channelTransacted
ConfigurechannelTransactedon 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:
-
templateChannelTransacted
ConfigurechannelTransactedon 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:
-
messagePropertiesConverter
ConfiguremessagePropertiesConverteron both theRabbitTemplate(for sends) andSimpleMessageListenerContainer(for receives).- Parameters:
messagePropertiesConverter- the messagePropertiesConverter.- Returns:
- the spec.
- See Also:
-
defaultDeliveryMode
Configure the delivery mode for messages that don't have anAmqpHeaders.DELIVERY_MODEheader. Default isMessageDeliveryMode.PERSISTENT.- Parameters:
mode- the mode.- Returns:
- the spec.
-
extractPayload
Configure whether normal spring-messaging to AMQP message mapping is enabled. Default false.- Parameters:
extract- true to enable mapping.- Returns:
- the spec.
- See Also:
-
outboundHeaderMapper
Configure the outbound header mapper to use whenextractPayload(boolean)is true. Defaults to aDefaultAmqpHeaderMapper.- Parameters:
mapper- the mapper.- Returns:
- the spec.
- See Also:
-
inboundHeaderMapper
Configure 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 classMessageChannelSpec<S extends AmqpPollableMessageChannelSpec<S,T>, T extends AbstractAmqpChannel>
-