S
- the target AmqpBaseInboundGatewaySpec
implementation type.public class AmqpBaseInboundGatewaySpec<S extends AmqpBaseInboundGatewaySpec<S>> extends MessagingGatewaySpec<S,AmqpInboundGateway>
MessagingGatewaySpec
implementation for AmqpInboundGateway
endpoint options.
Doesn't allow to specify listenerContainer
options.AmqpInboundGateway
Modifier and Type | Field and Description |
---|---|
protected DefaultAmqpHeaderMapper |
headerMapper |
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
AmqpBaseInboundGatewaySpec(AmqpInboundGateway gateway) |
Modifier and Type | Method and Description |
---|---|
S |
batchingStrategy(org.springframework.amqp.rabbit.batch.BatchingStrategy batchingStrategy)
Set a batching strategy to use when de-batching messages.
|
S |
bindSourceMessage(boolean bindSourceMessage)
Set to true to bind the source message in the headers.
|
S |
defaultReplyTo(String defaultReplyTo)
The
defaultReplyTo address with the form
(exchange)/(routingKey) |
S |
headerMapper(AmqpHeaderMapper headerMapper)
Configure the gateway's
AmqpHeaderMapper ; defaults to
DefaultAmqpHeaderMapper . |
S |
mappedReplyHeaders(String... headers)
Only applies if the default header mapper is used.
|
S |
mappedRequestHeaders(String... headers)
Only applies if the default header mapper is used.
|
S |
messageConverter(org.springframework.amqp.support.converter.MessageConverter messageConverter)
Configure the gateway's
MessageConverter ;
defaults to SimpleMessageConverter . |
S |
recoveryCallback(org.springframework.retry.RecoveryCallback<?> recoveryCallback)
Set a
RecoveryCallback when using retry within the adapter. |
S |
replyHeadersMappedLast(boolean replyHeadersMappedLast)
When mapping headers for the outbound (reply) message, determine whether the headers are
mapped before the message is converted, or afterwards.
|
S |
retryTemplate(org.springframework.retry.support.RetryTemplate retryTemplate)
Set a
RetryTemplate to use for retrying a message delivery within the
adapter. |
autoStartup, errorChannel, errorChannel, errorOnTimeout, id, phase, replyChannel, replyChannel, replyMapper, replyTimeout, requestChannel, requestChannel, requestMapper, requestTimeout, shouldTrack
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
protected final DefaultAmqpHeaderMapper headerMapper
protected AmqpBaseInboundGatewaySpec(AmqpInboundGateway gateway)
public S messageConverter(org.springframework.amqp.support.converter.MessageConverter messageConverter)
MessageConverter
;
defaults to SimpleMessageConverter
.messageConverter
- the messageConverter.AmqpInboundGateway.setMessageConverter(org.springframework.amqp.support.converter.MessageConverter)
public S headerMapper(AmqpHeaderMapper headerMapper)
AmqpHeaderMapper
; defaults to
DefaultAmqpHeaderMapper
.headerMapper
- the headerMapper.AmqpInboundGateway.setHeaderMapper(AmqpHeaderMapper)
public S mappedRequestHeaders(String... headers)
headers
- the headers.AbstractHeaderMapper.setRequestHeaderNames(String[])
public S mappedReplyHeaders(String... headers)
headers
- the headers.AbstractHeaderMapper.setReplyHeaderNames(String[])
public S defaultReplyTo(String defaultReplyTo)
defaultReplyTo
address with the form
(exchange)/(routingKey)or
(queueName)if the request message doesn't have a
replyTo
property.
The second form uses the default exchange ("") and the queue name as
the routing key.defaultReplyTo
- the default replyTo
address to use.AmqpInboundGateway.setDefaultReplyTo(java.lang.String)
public S retryTemplate(org.springframework.retry.support.RetryTemplate retryTemplate)
RetryTemplate
to use for retrying a message delivery within the
adapter.retryTemplate
- the template.AmqpInboundGateway.setRetryTemplate(RetryTemplate)
public S recoveryCallback(org.springframework.retry.RecoveryCallback<?> recoveryCallback)
RecoveryCallback
when using retry within the adapter.recoveryCallback
- the callback.AmqpInboundGateway.setRecoveryCallback(RecoveryCallback)
public S batchingStrategy(org.springframework.amqp.rabbit.batch.BatchingStrategy batchingStrategy)
batchingStrategy
- the strategy to use.AmqpInboundGateway.setBatchingStrategy(BatchingStrategy)
public S bindSourceMessage(boolean bindSourceMessage)
bindSourceMessage
- true to bind.AmqpInboundGateway.setBindSourceMessage(boolean)
public S replyHeadersMappedLast(boolean replyHeadersMappedLast)
replyHeadersMappedLast
- true if reply headers are mapped after conversion.AmqpInboundGateway.setReplyHeadersMappedLast(boolean)