Class AmqpBaseInboundGatewaySpec<S extends AmqpBaseInboundGatewaySpec<S>>
java.lang.Object
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 targetAmqpBaseInboundGatewaySpec
implementation type.
- All Implemented Interfaces:
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:
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
logger, PARSER, target
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbatchingStrategy
(BatchingStrategy batchingStrategy) Set a batching strategy to use when de-batching messages.bindSourceMessage
(boolean bindSourceMessage) Set to true to bind the source message in the headers.defaultReplyTo
(String defaultReplyTo) ThedefaultReplyTo
address with the formheaderMapper
(AmqpHeaderMapper headerMapper) Configure the gateway'sAmqpHeaderMapper
; defaults toDefaultAmqpHeaderMapper
.mappedReplyHeaders
(String... headers) Only applies if the default header mapper is used.mappedRequestHeaders
(String... headers) Only applies if the default header mapper is used.messageConverter
(MessageConverter messageConverter) Configure the gateway'sMessageConverter
; defaults toSimpleMessageConverter
.messageRecoverer
(MessageRecoverer messageRecoverer) Set aMessageRecoverer
when using retry within the adapter.recoveryCallback
(org.springframework.retry.RecoveryCallback<?> recoveryCallback) Set aRecoveryCallback
when using retry within the adapter.replyHeadersMappedLast
(boolean replyHeadersMappedLast) When mapping headers for the outbound (reply) message, determine whether the headers are mapped before the message is converted, or afterwards.retryTemplate
(org.springframework.retry.support.RetryTemplate retryTemplate) Set aRetryTemplate
to use for retrying a message delivery within the adapter.Methods inherited from class org.springframework.integration.dsl.MessagingGatewaySpec
autoStartup, errorChannel, errorChannel, errorOnTimeout, id, observationConvention, phase, replyChannel, replyChannel, replyMapper, replyTimeout, requestChannel, requestChannel, requestMapper, requestTimeout, shouldTrack
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Field Details
-
headerMapper
-
-
Constructor Details
-
AmqpBaseInboundGatewaySpec
-
-
Method Details
-
messageConverter
Configure the gateway'sMessageConverter
; defaults toSimpleMessageConverter
.- Parameters:
messageConverter
- the messageConverter.- Returns:
- the spec.
- See Also:
-
headerMapper
Configure the gateway'sAmqpHeaderMapper
; defaults toDefaultAmqpHeaderMapper
.- Parameters:
headerMapper
- the headerMapper.- Returns:
- the spec.
- See Also:
-
mappedRequestHeaders
Only applies if the default header mapper is used.- Parameters:
headers
- the headers.- Returns:
- the spec.
- See Also:
-
mappedReplyHeaders
Only applies if the default header mapper is used.- Parameters:
headers
- the headers.- Returns:
- the spec.
- See Also:
-
defaultReplyTo
ThedefaultReplyTo
address with the form(exchange)/(routingKey)
or(queueName)
if the request message doesn't have areplyTo
property. The second form uses the default exchange ("") and the queue name as the routing key.- Parameters:
defaultReplyTo
- the defaultreplyTo
address to use.- Returns:
- the spec.
- See Also:
-
retryTemplate
Set aRetryTemplate
to use for retrying a message delivery within the adapter.- Parameters:
retryTemplate
- the template.- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
-
recoveryCallback
Set aRecoveryCallback
when using retry within the adapter.- Parameters:
recoveryCallback
- the callback.- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
-
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:
-
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:
-
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:
-
messageRecoverer
Set aMessageRecoverer
when using retry within the adapter.- Parameters:
messageRecoverer
- the callback.- Returns:
- the spec.
- Since:
- 5.5
- See Also:
-