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 targetJmsOutboundChannelAdapterSpecimplementation 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 ClassesModifier and TypeClassDescriptionstatic classAJmsTemplate-basedJmsOutboundChannelAdapterSpecextension. -
Field Summary
FieldsFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, targetFields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
loggerFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeliveryModeExpression(String deliveryModeExpression) Specify a SpEL expression to evaluate adeliveryModefor JMS message to send.<P> SdeliveryModeFunction(Function<Message<P>, ?> deliveryModeFunction) Specify aFunctionto resolve adeliveryModefor JMS message to send.destination(String destination) Configure the name of the destination to which this adapter will send messages.<P> Sdestination(Function<Message<P>, ?> destinationFunction) Configure aFunctionthat will be invoked at run time to determine the destination to which a message will be sent.destination(javax.jms.Destination destination) Configure the destination to which this adapter will send messages.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 atimeToLivefor JMS message to send.<P> StimeToLiveFunction(Function<Message<P>, ?> timeToLiveFunction) Specify aFunctionto resolve atimeToLivefor 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, stopMethods 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 aFunctionthat 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 adeliveryModefor JMS message to send.- Parameters:
deliveryModeExpression- to use- Returns:
- the spec
- Since:
- 5.1
-
deliveryModeFunction
Specify aFunctionto resolve adeliveryModefor 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 atimeToLivefor JMS message to send.- Parameters:
timeToLiveExpression- to use- Returns:
- the spec
- Since:
- 5.1
-
timeToLiveFunction
Specify aFunctionto resolve atimeToLivefor JMS message to send.- Type Parameters:
P- the expected payload type.- Parameters:
timeToLiveFunction- to use- Returns:
- the spec
- Since:
- 5.1
- See Also:
-