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 targetAmqpBaseOutboundEndpointSpec
implementation type.E
- the targetAbstractAmqpOutboundEndpoint
implementation 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 AbstractAmqpOutboundEndpoint
s.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell
-
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 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 aFunction
to 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-delay
header when using the RabbitMQ delayed message exchange plugin.delayExpression
(String delayExpression) Set the SpEL expression to calculate thex-delay
header when using the RabbitMQ delayed message exchange plugin.delayExpression
(Expression delayExpression) Set the SpEL expression to calculate thex-delay
header when using the RabbitMQ delayed message exchange plugin.delayFunction
(Function<Message<?>, Integer> delayFunction) Set the function to calculate thex-delay
header 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 aFunction
to evaluate an exchange name at runtime.headerMapper
(AmqpHeaderMapper headerMapper) Set a customAmqpHeaderMapper
for 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 tofalse
to 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, 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
-
AmqpBaseOutboundEndpointSpec
public AmqpBaseOutboundEndpointSpec()
-
-
Method Details
-
headerMapper
Set a customAmqpHeaderMapper
for mapping request and reply headers.- Parameters:
headerMapper
- theAmqpHeaderMapper
to use.- Returns:
- the spec
-
defaultDeliveryMode
Set the default delivery mode.- Parameters:
defaultDeliveryMode
- the delivery mode.- Returns:
- the spec
-
routingKey
Configure an AMQP routing key for sending messages.- Parameters:
routingKey
- the routing key to use- Returns:
- the spec
-
routingKeyExpression
A SpEL expression to evaluate routing key at runtime.- Parameters:
routingKeyExpression
- the expression to use.- Returns:
- the spec
-
routingKeyFunction
A function to evaluate routing key at runtime.- Parameters:
routingKeyFunction
- theFunction
to use.- Returns:
- the spec
-
routingKeyExpression
A SpEL expression to evaluate routing key at runtime.- Parameters:
routingKeyExpression
- the expression to use.- Returns:
- the spec
-
returnChannel
Set the channel to which returned messages are sent.- Parameters:
returnChannel
- the channel.- Returns:
- the spec
-
confirmAckChannel
Set the channel to which acks are send (publisher confirms).- Parameters:
ackChannel
- the channel.- Returns:
- the spec
-
exchangeName
Configure an AMQP exchange name for sending messages.- Parameters:
exchangeName
- the exchange name for sending messages.- Returns:
- the spec
-
exchangeNameExpression
Configure a SpEL expression to evaluate an exchange name at runtime.- Parameters:
exchangeNameExpression
- the expression to use.- Returns:
- the spec
-
exchangeNameFunction
Configure aFunction
to evaluate an exchange name at runtime.- Parameters:
exchangeNameFunction
- the function to use.- Returns:
- the spec
-
exchangeNameExpression
Configure a SpEL expression to evaluate an exchange name at runtime.- Parameters:
exchangeNameExpression
- the expression to use.- Returns:
- the spec
-
confirmNackChannel
Set the channel to which nacks are send (publisher confirms).- Parameters:
nackChannel
- the channel.- Returns:
- the spec
-
confirmCorrelationExpression
Set a SpEL expression to evaluate confirm correlation at runtime.- Parameters:
confirmCorrelationExpression
- the expression to use.- Returns:
- the spec
-
confirmCorrelationFunction
Set aFunction
to evaluate confirm correlation at runtime.- Parameters:
confirmCorrelationFunction
- the function to use.- Returns:
- the spec
-
confirmCorrelationExpression
Set a SpEL expression to evaluate confirm correlation at runtime.- Parameters:
confirmCorrelationExpression
- the expression to use.- Returns:
- the spec
-
mappedRequestHeaders
Provide the header names that should be mapped from a request to aMessageHeaders
.- Parameters:
headers
- The request header names.- Returns:
- the spec
-
mappedReplyHeaders
Provide the header names that should be mapped to a response from aMessageHeaders
.- Parameters:
headers
- The reply header names.- Returns:
- the spec
-
headersMappedLast
Determine whether the headers are mapped before the message is converted, or afterwards.- Parameters:
headersLast
- true to map headers last.- Returns:
- the spec.
- See Also:
-
lazyConnect
Set tofalse
to attempt to connect during endpoint start.- Parameters:
lazyConnect
- the lazyConnect to set.- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
-
delay
Set the value to set in thex-delay
header when using the RabbitMQ delayed message exchange plugin.- Parameters:
delay
- the delay.- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
-
delayFunction
Set the function to calculate thex-delay
header when using the RabbitMQ delayed message exchange plugin.- Parameters:
delayFunction
- the function to evaluate the value for thex-delay
header.- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
-
delayExpression
Set the SpEL expression to calculate thex-delay
header when using the RabbitMQ delayed message exchange plugin.- Parameters:
delayExpression
- the expression.- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
-
delayExpression
Set the SpEL expression to calculate thex-delay
header when using the RabbitMQ delayed message exchange plugin.- Parameters:
delayExpression
- the expression.- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
-
errorMessageStrategy
Set 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:
-
confirmTimeout
Set 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
-