S
- the target AmqpBaseInboundChannelAdapterSpec
implementation type.public class AmqpBaseInboundChannelAdapterSpec<S extends AmqpBaseInboundChannelAdapterSpec<S>> extends MessageProducerSpec<S,AmqpInboundChannelAdapter>
MessageProducerSpec
implementation for a AmqpInboundChannelAdapter
.Modifier and Type | Field and Description |
---|---|
protected DefaultAmqpHeaderMapper |
headerMapper |
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
AmqpBaseInboundChannelAdapterSpec(AmqpInboundChannelAdapter producer) |
Modifier and Type | Method and Description |
---|---|
S |
headerMapper(AmqpHeaderMapper headerMapper)
Configure the adapter's
AmqpHeaderMapper ;
defaults to DefaultAmqpHeaderMapper . |
S |
mappedRequestHeaders(String... headers)
Only applies if the default header mapper is used.
|
S |
messageConverter(MessageConverter messageConverter)
Configure the adapter's
MessageConverter ;
defaults to SimpleMessageConverter . |
S |
recoveryCallback(org.springframework.retry.RecoveryCallback<?> recoveryCallback)
Set a
RecoveryCallback when using retry within the adapter. |
S |
retryTemplate(org.springframework.retry.support.RetryTemplate retryTemplate)
Set a
RetryTemplate to use for retrying a message delivery within the
adapter. |
autoStartup, errorChannel, errorChannel, errorMessageStrategy, id, outputChannel, outputChannel, phase, sendTimeout, 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 AmqpBaseInboundChannelAdapterSpec(AmqpInboundChannelAdapter producer)
public S messageConverter(MessageConverter messageConverter)
MessageConverter
;
defaults to SimpleMessageConverter
.messageConverter
- the messageConverter.AmqpInboundChannelAdapter.setMessageConverter(org.springframework.amqp.support.converter.MessageConverter)
public S headerMapper(AmqpHeaderMapper headerMapper)
AmqpHeaderMapper
;
defaults to DefaultAmqpHeaderMapper
.headerMapper
- the headerMapper.public S mappedRequestHeaders(String... headers)
headers
- the headers.AbstractHeaderMapper.setRequestHeaderNames(String[])
public S retryTemplate(org.springframework.retry.support.RetryTemplate retryTemplate)
RetryTemplate
to use for retrying a message delivery within the
adapter.retryTemplate
- the template.AmqpInboundChannelAdapter.setRetryTemplate(RetryTemplate)
public S recoveryCallback(org.springframework.retry.RecoveryCallback<?> recoveryCallback)
RecoveryCallback
when using retry within the adapter.recoveryCallback
- the callback.AmqpInboundChannelAdapter.setRecoveryCallback(RecoveryCallback)