Class JmsOutboundChannelAdapterSpec<S extends JmsOutboundChannelAdapterSpec<S>>
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
org.springframework.integration.dsl.MessageHandlerSpec<S,JmsSendingMessageHandler>
org.springframework.integration.jms.dsl.JmsOutboundChannelAdapterSpec<S>
- Type Parameters:
S
- the targetJmsOutboundChannelAdapterSpec
implementation type.
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<JmsSendingMessageHandler>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
- Direct Known Subclasses:
JmsOutboundChannelAdapterSpec.JmsOutboundChannelSpecTemplateAware
public class JmsOutboundChannelAdapterSpec<S extends JmsOutboundChannelAdapterSpec<S>> extends MessageHandlerSpec<S,JmsSendingMessageHandler>
- Since:
- 5.0
- Author:
- Artem Bilan
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JmsOutboundChannelAdapterSpec.JmsOutboundChannelSpecTemplateAware
AJmsTemplate
-basedJmsOutboundChannelAdapterSpec
extension. -
Field Summary
Fields Modifier and Type Field Description protected JmsTemplateSpec
jmsTemplateSpec
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
-
Constructor Summary
Constructors Modifier Constructor Description protected
JmsOutboundChannelAdapterSpec(JmsTemplate jmsTemplate)
-
Method Summary
Modifier and Type Method Description S
deliveryModeExpression(String deliveryModeExpression)
Specify a SpEL expression to evaluate adeliveryMode
for JMS message to send.<P> S
deliveryModeFunction(Function<Message<P>,?> deliveryModeFunction)
Specify aFunction
to resolve adeliveryMode
for JMS message to send.S
destination(String destination)
Configure the name of the destination to which this adapter will send messages.<P> S
destination(Function<Message<P>,?> destinationFunction)
Configure aFunction
that will be invoked at run time to determine the destination to which a message will be sent.S
destination(javax.jms.Destination destination)
Configure 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 atimeToLive
for JMS message to send.<P> S
timeToLiveFunction(Function<Message<P>,?> timeToLiveFunction)
Specify aFunction
to resolve atimeToLive
for JMS message to send.Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Field Details
-
Constructor Details
-
Method Details
-
extractPayload
- Parameters:
extractPayload
- the extractPayload flag.- Returns:
- the current
JmsOutboundChannelAdapterSpec
. - See Also:
JmsSendingMessageHandler.setExtractPayload(boolean)
-
headerMapper
- Parameters:
headerMapper
- the headerMapper.- Returns:
- the current
JmsOutboundChannelAdapterSpec
. - See Also:
JmsSendingMessageHandler.setHeaderMapper(JmsHeaderMapper)
-
destination
Configure the destination to which this adapter will send messages.- Parameters:
destination
- the destination.- Returns:
- the current
JmsOutboundChannelAdapterSpec
. - See Also:
JmsSendingMessageHandler.setDestination(Destination)
-
destination
Configure the name of the destination to which this adapter will send messages.- Parameters:
destination
- the destination name.- Returns:
- the current
JmsOutboundChannelAdapterSpec
. - See Also:
JmsSendingMessageHandler.setDestinationName(String)
-
destinationExpression
Configure a SpEL expression that will evaluate, at run time, the destination to which a message will be sent.- Parameters:
destination
- the destination name.- Returns:
- the current
JmsOutboundChannelAdapterSpec
. - See Also:
JmsSendingMessageHandler.setDestinationExpression(Expression)
-
destination
Configure aFunction
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())
- Type Parameters:
P
- the expected payload type.- Parameters:
destinationFunction
- the destination function.- Returns:
- the current
JmsOutboundChannelAdapterSpec
. - See Also:
JmsSendingMessageHandler.setDestinationExpression(Expression)
,FunctionExpression
-
deliveryModeExpression
Specify a SpEL expression to evaluate adeliveryMode
for JMS message to send.- Parameters:
deliveryModeExpression
- to use- Returns:
- the spec
- Since:
- 5.1
-
deliveryModeFunction
Specify aFunction
to resolve adeliveryMode
for JMS message to send.- Type Parameters:
P
- the expected payload type.- Parameters:
deliveryModeFunction
- to use- Returns:
- the spec
- Since:
- 5.1
- See Also:
FunctionExpression
-
timeToLiveExpression
Specify a SpEL expression to evaluate atimeToLive
for JMS message to send.- Parameters:
timeToLiveExpression
- to use- Returns:
- the spec
- Since:
- 5.1
-
timeToLiveFunction
Specify aFunction
to resolve atimeToLive
for JMS message to send.- Type Parameters:
P
- the expected payload type.- Parameters:
timeToLiveFunction
- to use- Returns:
- the spec
- Since:
- 5.1
- See Also:
FunctionExpression
-