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 |
logger, PARSER, target| Modifier and Type | Method and Description |
|---|---|
S |
destination(javax.jms.Destination destination)
Configure the destination to which this adapter will send messages.
|
<P> S |
destination(java.util.function.Function<org.springframework.messaging.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(java.lang.String destination)
Configure the name of the destination to which this adapter will send messages.
|
S |
destinationExpression(java.lang.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) |
_this, afterPropertiesSet, destroy, doGet, get, getId, getObject, getObjectType, id, isSingletonprotected final JmsTemplateSpec jmsTemplateSpec
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(javax.jms.Destination destination)
destination - the destination.JmsOutboundChannelAdapterSpec.JmsSendingMessageHandler.setDestination(Destination)public S destination(java.lang.String destination)
destination - the destination name.JmsOutboundChannelAdapterSpec.JmsSendingMessageHandler.setDestinationName(String)public S destinationExpression(java.lang.String destination)
destination - the destination name.JmsOutboundChannelAdapterSpec.JmsSendingMessageHandler.setDestinationName(String)public <P> S destination(java.util.function.Function<org.springframework.messaging.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.setDestinationName(String),
FunctionExpression