public class MessagingTemplate
extends org.springframework.messaging.core.GenericMessagingTemplate
Constructor and Description |
---|
MessagingTemplate()
Create a MessagingTemplate with no default channel.
|
MessagingTemplate(org.springframework.messaging.MessageChannel defaultChannel)
Create a MessagingTemplate with the given default channel.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.messaging.Message<?> |
sendAndReceive(org.springframework.messaging.MessageChannel destination,
org.springframework.messaging.Message<?> requestMessage) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Overridden to set the destination resolver to a
BeanFactoryChannelResolver . |
void |
setDefaultChannel(org.springframework.messaging.MessageChannel channel)
Invokes
setDefaultDestination(MessageChannel) - provided for
backward compatibility. |
void |
setThrowExceptionOnLateReply(boolean throwExceptionOnLateReply) |
doReceive, doSend, doSendAndReceive, getReceiveTimeout, getSendTimeout, setReceiveTimeout, setSendTimeout
convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, getDestinationResolver, receive, receiveAndConvert, resolveDestination, send, sendAndReceive, setDestinationResolver
convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, sendAndReceive
doConvert, receive, receive, receiveAndConvert, receiveAndConvert
convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, doConvert, getDefaultDestination, getMessageConverter, getRequiredDefaultDestination, processHeadersToSend, send, send, setDefaultDestination, setMessageConverter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, send, send
public MessagingTemplate()
setDefaultChannel(MessageChannel)
.public MessagingTemplate(org.springframework.messaging.MessageChannel defaultChannel)
defaultChannel
- the default MessageChannel
for send
operationspublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
BeanFactoryChannelResolver
.setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
setBeanFactory
in class org.springframework.messaging.core.GenericMessagingTemplate
org.springframework.beans.BeansException
public void setThrowExceptionOnLateReply(boolean throwExceptionOnLateReply)
setThrowExceptionOnLateReply
in class org.springframework.messaging.core.GenericMessagingTemplate
public void setDefaultChannel(org.springframework.messaging.MessageChannel channel)
setDefaultDestination(MessageChannel)
- provided for
backward compatibility.channel
- the channel to set.public org.springframework.messaging.Message<?> sendAndReceive(org.springframework.messaging.MessageChannel destination, org.springframework.messaging.Message<?> requestMessage)
sendAndReceive
in interface org.springframework.messaging.core.MessageRequestReplyOperations<org.springframework.messaging.MessageChannel>
sendAndReceive
in class org.springframework.messaging.core.AbstractMessagingTemplate<org.springframework.messaging.MessageChannel>