S
- the target AmqpBaseOutboundEndpointSpec
implementation type.E
- the target AbstractAmqpOutboundEndpoint
implementation type.public abstract class AmqpBaseOutboundEndpointSpec<S extends AmqpBaseOutboundEndpointSpec<S,E>,E extends AbstractAmqpOutboundEndpoint> extends MessageHandlerSpec<S,E>
MessageHandlerSpec
for AbstractAmqpOutboundEndpoint
s.Modifier and Type | Field and Description |
---|---|
protected DefaultAmqpHeaderMapper |
headerMapper |
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
AmqpBaseOutboundEndpointSpec() |
Modifier and Type | Method and Description |
---|---|
S |
confirmAckChannel(MessageChannel ackChannel)
Set the channel to which acks are send (publisher confirms).
|
S |
confirmCorrelationExpression(Expression confirmCorrelationExpression)
Set a SpEL expression to evaluate confirm correlation at runtime.
|
S |
confirmCorrelationExpression(String confirmCorrelationExpression)
Set a SpEL expression to evaluate confirm correlation at runtime.
|
S |
confirmCorrelationFunction(java.util.function.Function<Message<?>,Object> confirmCorrelationFunction)
Set a
Function to evaluate confirm correlation at runtime. |
S |
confirmNackChannel(MessageChannel nackChannel)
Set the channel to which nacks are send (publisher confirms).
|
S |
confirmTimeout(long timeout)
Set a timeout after which a nack will be synthesized if no publisher confirm has
been received within that time.
|
S |
defaultDeliveryMode(MessageDeliveryMode defaultDeliveryMode)
Set the default delivery mode.
|
S |
delay(int delay)
Set the value to set in the
x-delay header when using the
RabbitMQ delayed message exchange plugin. |
S |
delayExpression(Expression delayExpression)
Set the SpEL expression to calculate the
x-delay header when using the
RabbitMQ delayed message exchange plugin. |
S |
delayExpression(String delayExpression)
Set the SpEL expression to calculate the
x-delay header when using the
RabbitMQ delayed message exchange plugin. |
S |
delayFunction(java.util.function.Function<Message<?>,Integer> delayFunction)
Set the function to calculate the
x-delay header when using the
RabbitMQ delayed message exchange plugin. |
S |
errorMessageStrategy(ErrorMessageStrategy errorMessageStrategy)
Set the error message strategy to use for returned (or negatively confirmed)
messages.
|
S |
exchangeName(String exchangeName)
Configure an AMQP exchange name for sending messages.
|
S |
exchangeNameExpression(Expression exchangeNameExpression)
Configure a SpEL expression to evaluate an exchange name at runtime.
|
S |
exchangeNameExpression(String exchangeNameExpression)
Configure a SpEL expression to evaluate an exchange name at runtime.
|
S |
exchangeNameFunction(java.util.function.Function<Message<?>,String> exchangeNameFunction)
Configure a
Function to evaluate an exchange name at runtime. |
S |
headerMapper(AmqpHeaderMapper headerMapper)
Set a custom
AmqpHeaderMapper for mapping request and reply headers. |
S |
headersMappedLast(boolean headersLast)
Determine whether the headers are
mapped before the message is converted, or afterwards.
|
S |
lazyConnect(boolean lazyConnect)
Set to
false to attempt to connect during endpoint start. |
S |
mappedReplyHeaders(String... headers)
Provide the header names that should be mapped to a response
from a
MessageHeaders . |
S |
mappedRequestHeaders(String... headers)
Provide the header names that should be mapped from a request to a
MessageHeaders . |
S |
returnChannel(MessageChannel returnChannel)
Set the channel to which returned messages are sent.
|
S |
routingKey(String routingKey)
Configure an AMQP routing key for sending messages.
|
S |
routingKeyExpression(Expression routingKeyExpression)
A SpEL expression to evaluate routing key at runtime.
|
S |
routingKeyExpression(String routingKeyExpression)
A SpEL expression to evaluate routing key at runtime.
|
S |
routingKeyFunction(java.util.function.Function<Message<?>,String> routingKeyFunction)
A function to evaluate routing key at runtime.
|
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
protected final DefaultAmqpHeaderMapper headerMapper
public S headerMapper(AmqpHeaderMapper headerMapper)
AmqpHeaderMapper
for mapping request and reply headers.headerMapper
- the AmqpHeaderMapper
to use.public S defaultDeliveryMode(MessageDeliveryMode defaultDeliveryMode)
defaultDeliveryMode
- the delivery mode.public S routingKey(String routingKey)
routingKey
- the routing key to usepublic S routingKeyExpression(String routingKeyExpression)
routingKeyExpression
- the expression to use.public S routingKeyFunction(java.util.function.Function<Message<?>,String> routingKeyFunction)
routingKeyFunction
- the Function
to use.public S routingKeyExpression(Expression routingKeyExpression)
routingKeyExpression
- the expression to use.public S returnChannel(MessageChannel returnChannel)
returnChannel
- the channel.public S confirmAckChannel(MessageChannel ackChannel)
ackChannel
- the channel.public S exchangeName(String exchangeName)
exchangeName
- the exchange name for sending messages.public S exchangeNameExpression(String exchangeNameExpression)
exchangeNameExpression
- the expression to use.public S exchangeNameFunction(java.util.function.Function<Message<?>,String> exchangeNameFunction)
Function
to evaluate an exchange name at runtime.exchangeNameFunction
- the function to use.public S exchangeNameExpression(Expression exchangeNameExpression)
exchangeNameExpression
- the expression to use.public S confirmNackChannel(MessageChannel nackChannel)
nackChannel
- the channel.public S confirmCorrelationExpression(String confirmCorrelationExpression)
confirmCorrelationExpression
- the expression to use.public S confirmCorrelationFunction(java.util.function.Function<Message<?>,Object> confirmCorrelationFunction)
Function
to evaluate confirm correlation at runtime.confirmCorrelationFunction
- the function to use.public S confirmCorrelationExpression(Expression confirmCorrelationExpression)
confirmCorrelationExpression
- the expression to use.public S mappedRequestHeaders(String... headers)
MessageHeaders
.headers
- The request header names.public S mappedReplyHeaders(String... headers)
MessageHeaders
.headers
- The reply header names.public S headersMappedLast(boolean headersLast)
headersLast
- true to map headers last.AbstractAmqpOutboundEndpoint.setHeadersMappedLast(boolean)
public S lazyConnect(boolean lazyConnect)
false
to attempt to connect during endpoint start.lazyConnect
- the lazyConnect to set.AbstractAmqpOutboundEndpoint.setLazyConnect(boolean)
public S delay(int delay)
x-delay
header when using the
RabbitMQ delayed message exchange plugin.delay
- the delay.AbstractAmqpOutboundEndpoint.setDelay(int)
public S delayFunction(java.util.function.Function<Message<?>,Integer> delayFunction)
x-delay
header when using the
RabbitMQ delayed message exchange plugin.delayFunction
- the function to evaluate the value for the x-delay
header.delayExpression(Expression)
public S delayExpression(Expression delayExpression)
x-delay
header when using the
RabbitMQ delayed message exchange plugin.delayExpression
- the expression.AbstractAmqpOutboundEndpoint.setDelayExpression(Expression)
public S delayExpression(String delayExpression)
x-delay
header when using the
RabbitMQ delayed message exchange plugin.delayExpression
- the expression.AbstractAmqpOutboundEndpoint.setDelayExpressionString(String)
public S errorMessageStrategy(ErrorMessageStrategy errorMessageStrategy)
errorMessageStrategy
- the strategy.AbstractAmqpOutboundEndpoint.setErrorMessageStrategy(ErrorMessageStrategy)
public S confirmTimeout(long timeout)
timeout
- the approximate timeout.