S
- the target JmsOutboundChannelAdapterSpec
implementation type.public class JmsOutboundChannelAdapterSpec<S extends JmsOutboundChannelAdapterSpec<S>> extends MessageHandlerSpec<S,JmsSendingMessageHandler>
Modifier and Type | Class and Description |
---|---|
static class |
JmsOutboundChannelAdapterSpec.JmsOutboundChannelSpecTemplateAware
A
JmsTemplate -based JmsOutboundChannelAdapterSpec extension. |
Modifier and Type | Field and Description |
---|---|
protected JmsTemplateSpec |
jmsTemplateSpec |
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
JmsOutboundChannelAdapterSpec(JmsTemplate jmsTemplate) |
Modifier and Type | Method and Description |
---|---|
S |
deliveryModeExpression(String deliveryModeExpression)
Specify a SpEL expression to evaluate a
deliveryMode for JMS message to send. |
<P> S |
deliveryModeFunction(java.util.function.Function<Message<P>,?> deliveryModeFunction)
Specify a
Function to resolve a deliveryMode for JMS message to send. |
S |
destination(Destination destination)
Configure the destination to which this adapter will send messages.
|
<P> S |
destination(java.util.function.Function<Message<P>,?> destinationFunction)
Configure a
Function that will be invoked at run time to determine the destination to
which a message will be sent. |
S |
destination(String destination)
Configure the name of the destination to which this adapter will send messages.
|
S |
destinationExpression(String destination)
Configure a SpEL expression that will evaluate, at run time, the destination to
which a message will be sent.
|
S |
extractPayload(boolean extractPayload) |
S |
headerMapper(JmsHeaderMapper headerMapper) |
S |
timeToLiveExpression(String timeToLiveExpression)
Specify a SpEL expression to evaluate a
timeToLive for JMS message to send. |
<P> S |
timeToLiveFunction(java.util.function.Function<Message<P>,?> timeToLiveFunction)
Specify a
Function to resolve a timeToLive for JMS message to send. |
_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 JmsTemplateSpec jmsTemplateSpec
protected JmsOutboundChannelAdapterSpec(JmsTemplate jmsTemplate)
public S extractPayload(boolean extractPayload)
extractPayload
- the extractPayload flag.JmsOutboundChannelAdapterSpec
.JmsSendingMessageHandler.setExtractPayload(boolean)
public S headerMapper(JmsHeaderMapper headerMapper)
headerMapper
- the headerMapper.JmsOutboundChannelAdapterSpec
.JmsSendingMessageHandler.setHeaderMapper(JmsHeaderMapper)
public S destination(Destination destination)
destination
- the destination.JmsOutboundChannelAdapterSpec
.JmsSendingMessageHandler.setDestination(Destination)
public S destination(String destination)
destination
- the destination name.JmsOutboundChannelAdapterSpec
.JmsSendingMessageHandler.setDestinationName(String)
public S destinationExpression(String destination)
destination
- the destination name.JmsOutboundChannelAdapterSpec
.JmsSendingMessageHandler.setDestinationExpression(Expression)
public <P> S destination(java.util.function.Function<Message<P>,?> destinationFunction)
Function
that will be invoked at run time to determine the destination to
which a message will be sent. Typically used with a Java 8 Lambda expression:
.<Foo>destination(m -> m.getPayload().getState())
P
- the expected payload type.destinationFunction
- the destination function.JmsOutboundChannelAdapterSpec
.JmsSendingMessageHandler.setDestinationExpression(Expression)
,
FunctionExpression
public S deliveryModeExpression(String deliveryModeExpression)
deliveryMode
for JMS message to send.deliveryModeExpression
- to usepublic <P> S deliveryModeFunction(java.util.function.Function<Message<P>,?> deliveryModeFunction)
Function
to resolve a deliveryMode
for JMS message to send.P
- the expected payload type.deliveryModeFunction
- to useFunctionExpression
public S timeToLiveExpression(String timeToLiveExpression)
timeToLive
for JMS message to send.timeToLiveExpression
- to usepublic <P> S timeToLiveFunction(java.util.function.Function<Message<P>,?> timeToLiveFunction)
Function
to resolve a timeToLive
for JMS message to send.P
- the expected payload type.timeToLiveFunction
- to useFunctionExpression