Class JmsOutboundChannelAdapterSpec<S extends JmsOutboundChannelAdapterSpec<S>>
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,JmsSendingMessageHandler>
org.springframework.integration.dsl.MessageHandlerSpec<S,JmsSendingMessageHandler>
org.springframework.integration.jms.dsl.JmsOutboundChannelAdapterSpec<S>
- Type Parameters:
S- the targetJmsOutboundChannelAdapterSpecimplementation type.
- All Implemented Interfaces:
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
logger, PARSER, targetFields 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(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> Sdestination(Function<Message<P>, ?> destinationFunction) Configure aFunctionthat 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 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, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
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
-
deliveryModeFunction
-
timeToLiveExpression
-
timeToLiveFunction
-