public class MessagingTemplate extends GenericMessagingTemplate
CONVERSION_HINT_HEADER, logger| Constructor and Description |
|---|
MessagingTemplate()
Create a MessagingTemplate with no default channel.
|
MessagingTemplate(MessageChannel defaultChannel)
Create a MessagingTemplate with the given default channel.
|
| Modifier and Type | Method and Description |
|---|---|
Message<?> |
sendAndReceive(MessageChannel destination,
Message<?> requestMessage) |
void |
setBeanFactory(BeanFactory beanFactory)
Overridden to set the destination resolver to a
BeanFactoryChannelResolver. |
void |
setDefaultChannel(MessageChannel channel)
Invokes
setDefaultDestination(MessageChannel) - provided for
backward compatibility. |
void |
setThrowExceptionOnLateReply(boolean throwExceptionOnLateReply) |
doReceive, doSend, doSendAndReceive, getReceiveTimeout, getSendTimeout, setReceiveTimeout, setSendTimeoutconvertAndSend, convertAndSend, convertAndSend, convertAndSend, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, getDestinationResolver, receive, receiveAndConvert, resolveDestination, send, sendAndReceive, setDestinationResolverconvertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, sendAndReceivedoConvert, receive, receive, receiveAndConvert, receiveAndConvertconvertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, doConvert, getDefaultDestination, getMessageConverter, getRequiredDefaultDestination, processHeadersToSend, send, send, setDefaultDestination, setMessageConverterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, send, sendreceive, receive, receiveAndConvert, receiveAndConvertconvertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, sendAndReceivepublic MessagingTemplate()
setDefaultChannel(MessageChannel).public MessagingTemplate(MessageChannel defaultChannel)
defaultChannel - the default MessageChannel for send operationspublic void setBeanFactory(BeanFactory beanFactory) throws BeansException
BeanFactoryChannelResolver.setBeanFactory in interface BeanFactoryAwaresetBeanFactory in class GenericMessagingTemplateBeansExceptionpublic void setThrowExceptionOnLateReply(boolean throwExceptionOnLateReply)
setThrowExceptionOnLateReply in class GenericMessagingTemplatepublic void setDefaultChannel(MessageChannel channel)
setDefaultDestination(MessageChannel) - provided for
backward compatibility.channel - the channel to set.public Message<?> sendAndReceive(MessageChannel destination, Message<?> requestMessage)
sendAndReceive in interface MessageRequestReplyOperations<MessageChannel>sendAndReceive in class AbstractMessagingTemplate<MessageChannel>