public class JmsSendingMessageHandler extends AbstractMessageHandler
IntegrationManagement.ManagementOverrides
EXPRESSION_PARSER, logger
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
Constructor and Description |
---|
JmsSendingMessageHandler(JmsTemplate jmsTemplate) |
Modifier and Type | Method and Description |
---|---|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected void |
handleMessageInternal(Message<?> message) |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setDeliveryModeExpression(Expression deliveryModeExpression)
Specify a SpEL expression to evaluate a
deliveryMode for the JMS message to send. |
void |
setDeliveryModeExpressionString(String deliveryModeExpression)
Specify a SpEL expression to evaluate a
deliveryMode for the JMS message to send. |
void |
setDestination(Destination destination) |
void |
setDestinationExpression(Expression destinationExpression) |
void |
setDestinationName(String destinationName) |
void |
setExtractPayload(boolean extractPayload)
Specify whether the payload should be extracted from each integration
Message to be used as the JMS Message body.
|
void |
setHeaderMapper(JmsHeaderMapper headerMapper) |
void |
setTimeToLiveExpression(Expression timeToLiveExpression)
Specify a SpEL expression to evaluate a
timeToLive for the JMS message to send. |
void |
setTimeToLiveExpressionString(String timeToLiveExpression)
Specify a SpEL expression to evaluate a
timeToLive for the JMS message to send. |
handleMessage, onComplete, onError, onNext, onSubscribe
buildSendTimer, destroy, getIntegrationPatternType, getManagedName, getManagedType, getMetricsCaptor, getOrder, getOverrides, isLoggingEnabled, registerMetricsCaptor, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrack
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getThisAs
getBeanName, getComponentName
public JmsSendingMessageHandler(JmsTemplate jmsTemplate)
public void setDestination(Destination destination)
public void setDestinationName(String destinationName)
public void setDestinationExpression(Expression destinationExpression)
public void setHeaderMapper(JmsHeaderMapper headerMapper)
public void setExtractPayload(boolean extractPayload)
The default value is true
. To force passing of the full
Spring Integration Message instead, set this to false
.
extractPayload
- true to extract the payload.public void setDeliveryModeExpressionString(String deliveryModeExpression)
deliveryMode
for the JMS message to send.
This option is applied only of QoS is enabled on the JmsTemplate
.deliveryModeExpression
- to usesetDeliveryModeExpression(Expression)
public void setDeliveryModeExpression(Expression deliveryModeExpression)
deliveryMode
for the JMS message to send.
This option is applied only of QoS is enabled on the JmsTemplate
.deliveryModeExpression
- to usepublic void setTimeToLiveExpressionString(String timeToLiveExpression)
timeToLive
for the JMS message to send.timeToLiveExpression
- to usesetTimeToLiveExpression(Expression)
public void setTimeToLiveExpression(Expression timeToLiveExpression)
timeToLive
for the JMS message to send.timeToLiveExpression
- to usepublic String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class MessageHandlerSupport
protected void onInit()
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
protected void handleMessageInternal(Message<?> message)
handleMessageInternal
in class AbstractMessageHandler