public class GenericMessagingTemplate extends AbstractDestinationResolvingMessagingTemplate<MessageChannel> implements org.springframework.beans.factory.BeanFactoryAware
MessageChannel
.logger
Constructor and Description |
---|
GenericMessagingTemplate() |
Modifier and Type | Method and Description |
---|---|
protected <P> Message<P> |
doReceive(MessageChannel destination) |
protected void |
doSend(MessageChannel destination,
Message<?> message) |
protected <S,R> Message<R> |
doSendAndReceive(MessageChannel destination,
Message<S> requestMessage) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setReceiveTimeout(long receiveTimeout)
Specify the timeout value to use for receive operations.
|
void |
setSendTimeout(long sendTimeout)
Specify the timeout value to use for send operations.
|
void |
setThrowExceptionOnLateReply(boolean throwExceptionOnLateReply)
Specify whether or not an attempt to send on the reply channel throws an exception
if no receiving thread will actually receive the reply.
|
convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, receive, receiveAndConvert, resolveDestination, send, sendAndReceive, setDestinationResolver
convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, receive, receive, receiveAndConvert, receiveAndConvert, sendAndReceive, sendAndReceive
convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, getDefaultDestination, getMessageConverter, getRequiredDefaultDestination, send, send, setDefaultDestination, setMessageConverter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, send, send
receive, receive, receiveAndConvert, receiveAndConvert
convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, sendAndReceive, sendAndReceive
public void setSendTimeout(long sendTimeout)
sendTimeout
- the send timeout in millisecondspublic void setReceiveTimeout(long receiveTimeout)
receiveTimeout
- the receive timeout in millisecondspublic void setThrowExceptionOnLateReply(boolean throwExceptionOnLateReply)
throwExceptionOnLateReply
- TRUE or FALSE.public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
protected final void doSend(MessageChannel destination, Message<?> message)
doSend
in class AbstractMessageSendingTemplate<MessageChannel>
protected final <P> Message<P> doReceive(MessageChannel destination)
doReceive
in class AbstractMessagingTemplate<MessageChannel>
protected final <S,R> Message<R> doSendAndReceive(MessageChannel destination, Message<S> requestMessage)
doSendAndReceive
in class AbstractMessagingTemplate<MessageChannel>