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
Modifier and TypeClassDescriptionstatic class
AJmsTemplate
-basedJmsOutboundChannelAdapterSpec
extension. -
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeliveryModeExpression
(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.destination
(Destination destination) Configure the destination to which this adapter will send messages.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.destinationExpression
(String destination) Configure a SpEL expression that will evaluate, at run time, the destination to which a message will be sent.extractPayload
(boolean extractPayload) headerMapper
(JmsHeaderMapper headerMapper) 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
-
jmsTemplateSpec
-
-
Constructor Details
-
JmsOutboundChannelAdapterSpec
-
-
Method Details
-
extractPayload
- Parameters:
extractPayload
- the extractPayload flag.- Returns:
- the current
JmsOutboundChannelAdapterSpec
. - See Also:
-
headerMapper
- Parameters:
headerMapper
- the headerMapper.- Returns:
- the current
JmsOutboundChannelAdapterSpec
. - See Also:
-
destination
Configure the destination to which this adapter will send messages.- Parameters:
destination
- the destination.- Returns:
- the current
JmsOutboundChannelAdapterSpec
. - See Also:
-
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:
-
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:
-
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:
-
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:
-
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:
-