Class AmqpBaseInboundGatewaySpec<S extends AmqpBaseInboundGatewaySpec<S>>
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,G>
org.springframework.integration.dsl.MessagingGatewaySpec<S,AmqpInboundGateway>
org.springframework.integration.amqp.dsl.AmqpBaseInboundGatewaySpec<S>
- Type Parameters:
S- the targetAmqpBaseInboundGatewaySpecimplementation type.
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<AmqpInboundGateway>,InitializingBean,Lifecycle,Phased,SmartLifecycle
- Direct Known Subclasses:
AmqpInboundGatewaySpec
public class AmqpBaseInboundGatewaySpec<S extends AmqpBaseInboundGatewaySpec<S>> extends MessagingGatewaySpec<S,AmqpInboundGateway>
A base
MessagingGatewaySpec implementation for AmqpInboundGateway endpoint options.
Doesn't allow to specify listenerContainer options.- Since:
- 5.0
- Author:
- Artem Bilan
- See Also:
AmqpInboundGateway
-
Field Summary
Fields Modifier and Type Field Description protected DefaultAmqpHeaderMapperheaderMapperFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target -
Constructor Summary
Constructors Modifier Constructor Description protectedAmqpBaseInboundGatewaySpec(AmqpInboundGateway gateway) -
Method Summary
Modifier and Type Method Description SbatchingStrategy(BatchingStrategy batchingStrategy)Set a batching strategy to use when de-batching messages.SbindSourceMessage(boolean bindSourceMessage)Set to true to bind the source message in the headers.SdefaultReplyTo(String defaultReplyTo)ThedefaultReplyToaddress with the formSheaderMapper(AmqpHeaderMapper headerMapper)Configure the gateway'sAmqpHeaderMapper; defaults toDefaultAmqpHeaderMapper.SmappedReplyHeaders(String... headers)Only applies if the default header mapper is used.SmappedRequestHeaders(String... headers)Only applies if the default header mapper is used.SmessageConverter(MessageConverter messageConverter)Configure the gateway'sMessageConverter; defaults toSimpleMessageConverter.SmessageRecoverer(MessageRecoverer messageRecoverer)Set aMessageRecovererwhen using retry within the adapter.SrecoveryCallback(org.springframework.retry.RecoveryCallback<?> recoveryCallback)Set aRecoveryCallbackwhen using retry within the adapter.SreplyHeadersMappedLast(boolean replyHeadersMappedLast)When mapping headers for the outbound (reply) message, determine whether the headers are mapped before the message is converted, or afterwards.SretryTemplate(org.springframework.retry.support.RetryTemplate retryTemplate)Set aRetryTemplateto use for retrying a message delivery within the adapter.Methods inherited from class org.springframework.integration.dsl.MessagingGatewaySpec
autoStartup, errorChannel, errorChannel, errorOnTimeout, id, phase, replyChannel, replyChannel, replyMapper, replyTimeout, requestChannel, requestChannel, requestMapper, requestTimeout, shouldTrackMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Field Details
-
Constructor Details
-
Method Details
-
messageConverter
Configure the gateway'sMessageConverter; defaults toSimpleMessageConverter.- Parameters:
messageConverter- the messageConverter.- Returns:
- the spec.
- See Also:
AmqpInboundGateway.setMessageConverter(org.springframework.amqp.support.converter.MessageConverter)
-
headerMapper
Configure the gateway'sAmqpHeaderMapper; defaults toDefaultAmqpHeaderMapper.- Parameters:
headerMapper- the headerMapper.- Returns:
- the spec.
- See Also:
AmqpInboundGateway.setHeaderMapper(AmqpHeaderMapper)
-
mappedRequestHeaders
Only applies if the default header mapper is used.- Parameters:
headers- the headers.- Returns:
- the spec.
- See Also:
AbstractHeaderMapper.setRequestHeaderNames(String[])
-
mappedReplyHeaders
Only applies if the default header mapper is used.- Parameters:
headers- the headers.- Returns:
- the spec.
- See Also:
AbstractHeaderMapper.setReplyHeaderNames(String[])
-
defaultReplyTo
ThedefaultReplyToaddress with the form(exchange)/(routingKey)
or(queueName)
if the request message doesn't have areplyToproperty. The second form uses the default exchange ("") and the queue name as the routing key.- Parameters:
defaultReplyTo- the defaultreplyToaddress to use.- Returns:
- the spec.
- See Also:
AmqpInboundGateway.setDefaultReplyTo(java.lang.String)
-
retryTemplate
Set aRetryTemplateto use for retrying a message delivery within the adapter.- Parameters:
retryTemplate- the template.- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
AmqpInboundGateway.setRetryTemplate(RetryTemplate)
-
recoveryCallback
Set aRecoveryCallbackwhen using retry within the adapter.- Parameters:
recoveryCallback- the callback.- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
AmqpInboundGateway.setRecoveryCallback(RecoveryCallback)
-
batchingStrategy
Set a batching strategy to use when de-batching messages.- Parameters:
batchingStrategy- the strategy to use.- Returns:
- the spec.
- Since:
- 5.2.1
- See Also:
AmqpInboundGateway.setBatchingStrategy(BatchingStrategy)
-
bindSourceMessage
Set to true to bind the source message in the headers.- Parameters:
bindSourceMessage- true to bind.- Returns:
- the spec.
- Since:
- 5.1.9
- See Also:
AmqpInboundGateway.setBindSourceMessage(boolean)
-
replyHeadersMappedLast
When mapping headers for the outbound (reply) message, determine whether the headers are mapped before the message is converted, or afterwards.- Parameters:
replyHeadersMappedLast- true if reply headers are mapped after conversion.- Returns:
- the spec.
- Since:
- 5.1.9
- See Also:
AmqpInboundGateway.setReplyHeadersMappedLast(boolean)
-
messageRecoverer
Set aMessageRecovererwhen using retry within the adapter.- Parameters:
messageRecoverer- the callback.- Returns:
- the spec.
- Since:
- 5.5
- See Also:
AmqpInboundChannelAdapter.setMessageRecoverer(MessageRecoverer)
-