Class AmqpBaseOutboundEndpointSpec<S extends AmqpBaseOutboundEndpointSpec<S,E>,E extends AbstractAmqpOutboundEndpoint>  
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
 
org.springframework.integration.dsl.MessageHandlerSpec<S,E>
 
org.springframework.integration.amqp.dsl.AmqpBaseOutboundEndpointSpec<S,E> 
- Type Parameters:
- S- the target- AmqpBaseOutboundEndpointSpecimplementation type.
- E- the target- AbstractAmqpOutboundEndpointimplementation type.
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<E>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle
- Direct Known Subclasses:
- AmqpAsyncOutboundGatewaySpec,- AmqpOutboundEndpointSpec
public abstract class AmqpBaseOutboundEndpointSpec<S extends AmqpBaseOutboundEndpointSpec<S,E>,E extends AbstractAmqpOutboundEndpoint>  
extends MessageHandlerSpec<S,E> 
The base 
MessageHandlerSpec for AbstractAmqpOutboundEndpoints.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell
- 
Field SummaryFieldsFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionconfirmAckChannel(MessageChannel ackChannel) Set the channel to which acks are send (publisher confirms).confirmCorrelationExpression(String confirmCorrelationExpression) Set a SpEL expression to evaluate confirm correlation at runtime.confirmCorrelationExpression(Expression confirmCorrelationExpression) Set a SpEL expression to evaluate confirm correlation at runtime.confirmCorrelationFunction(Function<Message<?>, Object> confirmCorrelationFunction) Set aFunctionto evaluate confirm correlation at runtime.confirmNackChannel(MessageChannel nackChannel) Set the channel to which nacks are send (publisher confirms).confirmTimeout(long timeout) Set a timeout after which a nack will be synthesized if no publisher confirm has been received within that time.defaultDeliveryMode(MessageDeliveryMode defaultDeliveryMode) Set the default delivery mode.delay(int delay) Set the value to set in thex-delayheader when using the RabbitMQ delayed message exchange plugin.delayExpression(String delayExpression) Set the SpEL expression to calculate thex-delayheader when using the RabbitMQ delayed message exchange plugin.delayExpression(Expression delayExpression) Set the SpEL expression to calculate thex-delayheader when using the RabbitMQ delayed message exchange plugin.delayFunction(Function<Message<?>, Integer> delayFunction) Set the function to calculate thex-delayheader when using the RabbitMQ delayed message exchange plugin.errorMessageStrategy(ErrorMessageStrategy errorMessageStrategy) Set the error message strategy to use for returned (or negatively confirmed) messages.exchangeName(String exchangeName) Configure an AMQP exchange name for sending messages.exchangeNameExpression(String exchangeNameExpression) Configure a SpEL expression to evaluate an exchange name at runtime.exchangeNameExpression(Expression exchangeNameExpression) Configure a SpEL expression to evaluate an exchange name at runtime.exchangeNameFunction(Function<Message<?>, String> exchangeNameFunction) Configure aFunctionto evaluate an exchange name at runtime.headerMapper(AmqpHeaderMapper headerMapper) Set a customAmqpHeaderMapperfor mapping request and reply headers.headersMappedLast(boolean headersLast) Determine whether the headers are mapped before the message is converted, or afterwards.lazyConnect(boolean lazyConnect) Set tofalseto attempt to connect during endpoint start.mappedReplyHeaders(String... headers) Provide the header names that should be mapped to a response from aMessageHeaders.mappedRequestHeaders(String... headers) Provide the header names that should be mapped from a request to aMessageHeaders.returnChannel(MessageChannel returnChannel) Set the channel to which returned messages are sent.routingKey(String routingKey) Configure an AMQP routing key for sending messages.routingKeyExpression(String routingKeyExpression) A SpEL expression to evaluate routing key at runtime.routingKeyExpression(Expression routingKeyExpression) A SpEL expression to evaluate routing key at runtime.routingKeyFunction(Function<Message<?>, String> routingKeyFunction) A function to evaluate routing key at runtime.Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, get, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Field Details- 
headerMapper
 
- 
- 
Constructor Details- 
AmqpBaseOutboundEndpointSpecpublic AmqpBaseOutboundEndpointSpec()
 
- 
- 
Method Details- 
headerMapperSet a customAmqpHeaderMapperfor mapping request and reply headers.- Parameters:
- headerMapper- the- AmqpHeaderMapperto use.
- Returns:
- the spec
 
- 
defaultDeliveryModeSet the default delivery mode.- Parameters:
- defaultDeliveryMode- the delivery mode.
- Returns:
- the spec
 
- 
routingKeyConfigure an AMQP routing key for sending messages.- Parameters:
- routingKey- the routing key to use
- Returns:
- the spec
 
- 
routingKeyExpressionA SpEL expression to evaluate routing key at runtime.- Parameters:
- routingKeyExpression- the expression to use.
- Returns:
- the spec
 
- 
routingKeyFunctionA function to evaluate routing key at runtime.- Parameters:
- routingKeyFunction- the- Functionto use.
- Returns:
- the spec
 
- 
routingKeyExpressionA SpEL expression to evaluate routing key at runtime.- Parameters:
- routingKeyExpression- the expression to use.
- Returns:
- the spec
 
- 
returnChannelSet the channel to which returned messages are sent.- Parameters:
- returnChannel- the channel.
- Returns:
- the spec
 
- 
confirmAckChannelSet the channel to which acks are send (publisher confirms).- Parameters:
- ackChannel- the channel.
- Returns:
- the spec
 
- 
exchangeNameConfigure an AMQP exchange name for sending messages.- Parameters:
- exchangeName- the exchange name for sending messages.
- Returns:
- the spec
 
- 
exchangeNameExpressionConfigure a SpEL expression to evaluate an exchange name at runtime.- Parameters:
- exchangeNameExpression- the expression to use.
- Returns:
- the spec
 
- 
exchangeNameFunctionConfigure aFunctionto evaluate an exchange name at runtime.- Parameters:
- exchangeNameFunction- the function to use.
- Returns:
- the spec
 
- 
exchangeNameExpressionConfigure a SpEL expression to evaluate an exchange name at runtime.- Parameters:
- exchangeNameExpression- the expression to use.
- Returns:
- the spec
 
- 
confirmNackChannelSet the channel to which nacks are send (publisher confirms).- Parameters:
- nackChannel- the channel.
- Returns:
- the spec
 
- 
confirmCorrelationExpressionSet a SpEL expression to evaluate confirm correlation at runtime.- Parameters:
- confirmCorrelationExpression- the expression to use.
- Returns:
- the spec
 
- 
confirmCorrelationFunctionSet aFunctionto evaluate confirm correlation at runtime.- Parameters:
- confirmCorrelationFunction- the function to use.
- Returns:
- the spec
 
- 
confirmCorrelationExpressionSet a SpEL expression to evaluate confirm correlation at runtime.- Parameters:
- confirmCorrelationExpression- the expression to use.
- Returns:
- the spec
 
- 
mappedRequestHeadersProvide the header names that should be mapped from a request to aMessageHeaders.- Parameters:
- headers- The request header names.
- Returns:
- the spec
 
- 
mappedReplyHeadersProvide the header names that should be mapped to a response from aMessageHeaders.- Parameters:
- headers- The reply header names.
- Returns:
- the spec
 
- 
headersMappedLastDetermine whether the headers are mapped before the message is converted, or afterwards.- Parameters:
- headersLast- true to map headers last.
- Returns:
- the spec.
- See Also:
 
- 
lazyConnectSet tofalseto attempt to connect during endpoint start.- Parameters:
- lazyConnect- the lazyConnect to set.
- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
 
- 
delaySet the value to set in thex-delayheader when using the RabbitMQ delayed message exchange plugin.- Parameters:
- delay- the delay.
- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
 
- 
delayFunctionSet the function to calculate thex-delayheader when using the RabbitMQ delayed message exchange plugin.- Parameters:
- delayFunction- the function to evaluate the value for the- x-delayheader.
- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
 
- 
delayExpressionSet the SpEL expression to calculate thex-delayheader when using the RabbitMQ delayed message exchange plugin.- Parameters:
- delayExpression- the expression.
- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
 
- 
delayExpressionSet the SpEL expression to calculate thex-delayheader when using the RabbitMQ delayed message exchange plugin.- Parameters:
- delayExpression- the expression.
- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
 
- 
errorMessageStrategySet the error message strategy to use for returned (or negatively confirmed) messages.- Parameters:
- errorMessageStrategy- the strategy.
- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
 
- 
confirmTimeoutSet a timeout after which a nack will be synthesized if no publisher confirm has been received within that time. Missing confirms will be checked every 50% of this value so the synthesized nack will be sent between 1x and 1.5x this timeout.- Parameters:
- timeout- the approximate timeout.
- Returns:
- the spec.
- Since:
- 5.3
 
 
-