Class AmqpBaseInboundChannelAdapterSpec<S extends AmqpBaseInboundChannelAdapterSpec<S>>
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S, AmqpInboundChannelAdapter>
org.springframework.integration.dsl.MessageProducerSpec<S, AmqpInboundChannelAdapter>
org.springframework.integration.amqp.dsl.AmqpBaseInboundChannelAdapterSpec<S>
- Type Parameters:
S- the targetAmqpBaseInboundChannelAdapterSpecimplementation type.
- All Implemented Interfaces:
DisposableBean,FactoryBean<AmqpInboundChannelAdapter>,InitializingBean,Lifecycle,Phased,SmartLifecycle
- Direct Known Subclasses:
AmqpInboundChannelAdapterSpec
public class AmqpBaseInboundChannelAdapterSpec<S extends AmqpBaseInboundChannelAdapterSpec<S>>
extends MessageProducerSpec<S, AmqpInboundChannelAdapter>
The base
MessageProducerSpec implementation for a AmqpInboundChannelAdapter.- Since:
- 5.0
- Author:
- Artem Bilan
-
Field Summary
FieldsFields 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
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionheaderMapper(AmqpHeaderMapper headerMapper) Configure the adapter'sAmqpHeaderMapper; defaults toDefaultAmqpHeaderMapper.mappedRequestHeaders(String... headers) Only applies if the default header mapper is used.messageConverter(MessageConverter messageConverter) Configure the adapter'sMessageConverter; defaults toSimpleMessageConverter.messageRecoverer(MessageRecoverer messageRecoverer) Set aMessageRecovererwhen using retry within the adapter.recoveryCallback(RecoveryCallback<?> recoveryCallback) Set aRecoveryCallbackwhen using retry within the adapter.retryTemplate(org.springframework.core.retry.RetryTemplate retryTemplate) Set aRetryTemplateto use for retrying a message delivery within the adapter.Methods inherited from class org.springframework.integration.dsl.MessageProducerSpec
autoStartup, errorChannel, errorChannel, errorMessageStrategy, id, observationConvention, outputChannel, outputChannel, phase, role, sendTimeout, shouldTrackMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, 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
isSingletonMethods inherited from interface org.springframework.context.SmartLifecycle
isPauseable
-
Field Details
-
headerMapper
-
-
Constructor Details
-
AmqpBaseInboundChannelAdapterSpec
-
-
Method Details
-
messageConverter
Configure the adapter'sMessageConverter; defaults toSimpleMessageConverter.- Parameters:
messageConverter- the messageConverter.- Returns:
- the spec.
- See Also:
-
headerMapper
Configure the adapter'sAmqpHeaderMapper; defaults toDefaultAmqpHeaderMapper.- Parameters:
headerMapper- the headerMapper.- Returns:
- the spec.
-
mappedRequestHeaders
-
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:
-
recoveryCallback
Set aRecoveryCallbackwhen using retry within the adapter.- Parameters:
recoveryCallback- the callback.- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
-
messageRecoverer
Set aMessageRecovererwhen using retry within the adapter.- Parameters:
messageRecoverer- the callback.- Returns:
- the spec.
- Since:
- 5.5
- See Also:
-