クラス 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 を作成します。メソッドのサマリー
修飾子と型メソッド説明@Nullable Message<?> receive(MessageChannel destination, long timeout) @Nullable ObjectSEreceiveAndConvert(MessageChannel destination, long timeout) @Nullable Message<?> sendAndReceive(MessageChannel destination, Message<?> requestMessage) voidsetBeanFactory(BeanFactory beanFactory) 宛先リゾルバーをintegrationChannelResolverBean に設定するためにオーバーライドされます。voidsetDefaultChannel(@Nullable MessageChannel channel) setDefaultDestination(MessageChannel)を呼び出す - 下位互換性のために提供されています。voidsetThrowExceptionOnLateReply(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, convertSendAndReceive, convertSendAndReceive, sendAndReceiveクラス org.springframework.messaging.core.AbstractMessageReceivingTemplate から継承されたメソッド
doConvert, receive, receive, receiveAndConvert, receiveAndConvertクラス org.springframework.messaging.core.AbstractMessageSendingTemplate から継承されたメソッド
convertAndSend, convertAndSend, 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, convertSendAndReceive, convertSendAndReceive, sendAndReceiveインターフェース org.springframework.messaging.core.MessageSendingOperations から継承されたメソッド
convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, send, send
コンストラクターの詳細
MessagingTemplate
public MessagingTemplate()デフォルトチャネルのない MessagingTemplate を作成します。setDefaultChannel(MessageChannel)を呼び出すことで提供できることに注意してください。MessagingTemplate
指定されたデフォルトチャネルで MessagingTemplate を作成します。- パラメーター:
defaultChannel-send操作のデフォルトMessageChannel
メソッドの詳細
setBeanFactory
宛先リゾルバーをintegrationChannelResolverBean に設定するためにオーバーライドされます。- 次で指定:
- インターフェース
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