public class JmsOutboundChannelAdapterSpec<S extends JmsOutboundChannelAdapterSpec<S>> extends MessageHandlerSpec<S,org.springframework.integration.jms.JmsSendingMessageHandler>
MessageHandlerSpec
for a JmsSendingMessageHandler
.Modifier and Type | Class and Description |
---|---|
static class |
JmsOutboundChannelAdapterSpec.JmsOutboundChannelSpecTemplateAware |
Modifier and Type | Field and Description |
---|---|
protected JmsTemplateSpec |
jmsTemplateSpec |
id, 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(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.
|
protected org.springframework.integration.jms.JmsSendingMessageHandler |
doGet() |
S |
extractPayload(boolean extractPayload) |
S |
headerMapper(org.springframework.integration.jms.JmsHeaderMapper headerMapper) |
_this, get, getId, id
protected final JmsTemplateSpec jmsTemplateSpec
public S extractPayload(boolean extractPayload)
extractPayload
- the extractPayload flag.JmsOutboundChannelAdapterSpec
.JmsSendingMessageHandler.setExtractPayload(boolean)
public S headerMapper(org.springframework.integration.jms.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(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
protected org.springframework.integration.jms.JmsSendingMessageHandler doGet()
doGet
in class IntegrationComponentSpec<S extends JmsOutboundChannelAdapterSpec<S>,org.springframework.integration.jms.JmsSendingMessageHandler>