クラス MessagingTemplate
java.lang.ObjectSE
org.springframework.messaging.core.AbstractMessageSendingTemplate<MessageChannel>
org.springframework.messaging.core.AbstractMessageReceivingTemplate<MessageChannel>
org.springframework.messaging.core.AbstractMessagingTemplate<MessageChannel>
org.springframework.messaging.core.AbstractDestinationResolvingMessagingTemplate<MessageChannel>
org.springframework.messaging.core.GenericMessagingTemplate
org.springframework.integration.core.MessagingTemplate
- 実装されたすべてのインターフェース:
Aware
、BeanFactoryAware
、DestinationResolvingMessageReceivingOperations<MessageChannel>
、DestinationResolvingMessageRequestReplyOperations<MessageChannel>
、DestinationResolvingMessageSendingOperations<MessageChannel>
、MessageReceivingOperations<MessageChannel>
、MessageRequestReplyOperations<MessageChannel>
、MessageSendingOperations<MessageChannel>
- 導入:
- 1.0
- 作成者:
- Mark Fisher, Oleg Zhurakousky, Gary Russell, Artem Bilan, Christian Tzolov
フィールドのサマリー
クラス org.springframework.messaging.core.GenericMessagingTemplate から継承されたフィールド
DEFAULT_RECEIVE_TIMEOUT_HEADER, DEFAULT_SEND_TIMEOUT_HEADER
クラス org.springframework.messaging.core.AbstractMessageSendingTemplate から継承されたフィールド
CONVERSION_HINT_HEADER, logger
コンストラクターの概要
コンストラクターコンストラクター説明デフォルトチャネルのない MessagingTemplate を作成します。MessagingTemplate
(MessageChannel defaultChannel) 指定されたデフォルトチャネルで MessagingTemplate を作成します。メソッドのサマリー
修飾子と型メソッド説明Message
<?> receive
(MessageChannel destination, long timeout) receiveAndConvert
(MessageChannel destination, long timeout) Message
<?> sendAndReceive
(MessageChannel destination, Message<?> requestMessage) void
setBeanFactory
(BeanFactory beanFactory) 宛先リゾルバーをintegrationChannelResolver
Bean に設定するためにオーバーライドされます。void
setDefaultChannel
(MessageChannel channel) setDefaultDestination(MessageChannel)
を呼び出す - 下位互換性のために提供されています。void
setThrowExceptionOnLateReply
(boolean throwExceptionOnLateReply) クラス org.springframework.messaging.core.GenericMessagingTemplate から継承されたメソッド
doReceive, doReceive, doSend, doSend, doSendAndReceive, getReceiveTimeout, getReceiveTimeoutHeader, getSendTimeout, getSendTimeoutHeader, setReceiveTimeout, setReceiveTimeoutHeader, setSendTimeout, setSendTimeoutHeader
クラス org.springframework.messaging.core.AbstractDestinationResolvingMessagingTemplate から継承されたメソッド
convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, getDestinationResolver, receive, receiveAndConvert, resolveDestination, send, sendAndReceive, setDestinationResolver
クラス org.springframework.messaging.core.AbstractMessagingTemplate から継承されたメソッド
convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, sendAndReceive
クラス org.springframework.messaging.core.AbstractMessageReceivingTemplate から継承されたメソッド
doConvert, receive, receive, receiveAndConvert, receiveAndConvert
クラス org.springframework.messaging.core.AbstractMessageSendingTemplate から継承されたメソッド
convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, doConvert, getDefaultDestination, getMessageConverter, getRequiredDefaultDestination, processHeadersToSend, send, send, setDefaultDestination, setMessageConverter
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.messaging.core.MessageReceivingOperations から継承されたメソッド
receive, receive, receiveAndConvert, receiveAndConvert
インターフェース org.springframework.messaging.core.MessageRequestReplyOperations から継承されたメソッド
convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, sendAndReceive
インターフェース org.springframework.messaging.core.MessageSendingOperations から継承されたメソッド
convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, send, send
コンストラクターの詳細
MessagingTemplate
public MessagingTemplate()デフォルトチャネルのない MessagingTemplate を作成します。setDefaultChannel(MessageChannel)
を呼び出すことで提供できることに注意してください。MessagingTemplate
指定されたデフォルトチャネルで MessagingTemplate を作成します。- パラメーター:
defaultChannel
-send
操作のデフォルトMessageChannel
メソッドの詳細
setBeanFactory
宛先リゾルバーをintegrationChannelResolver
Bean に設定するためにオーバーライドされます。- 次で指定:
- インターフェース
BeanFactoryAware
のsetBeanFactory
- オーバーライド:
- クラス
GenericMessagingTemplate
のsetBeanFactory
- 例外:
BeansException
setThrowExceptionOnLateReply
public void setThrowExceptionOnLateReply(boolean throwExceptionOnLateReply) - オーバーライド:
- クラス
GenericMessagingTemplate
のsetThrowExceptionOnLateReply
setDefaultChannel
setDefaultDestination(MessageChannel)
を呼び出す - 下位互換性のために提供されています。- パラメーター:
channel
- 設定するチャネル。
sendAndReceive
- 次で指定:
- インターフェース
MessageRequestReplyOperations<MessageChannel>
のsendAndReceive
- オーバーライド:
- クラス
AbstractMessagingTemplate<MessageChannel>
のsendAndReceive
receiveAndConvert
receive