クラス AbstractReplyProducingMessageHandler
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.MessageHandlerSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.handler.AbstractMessageProducingHandler
org.springframework.integration.handler.AbstractReplyProducingMessageHandler
- 実装されているすべてのインターフェース:
org.reactivestreams.Subscriber<Message<?>>、Aware、BeanClassLoaderAware、BeanFactoryAware、BeanNameAware、DisposableBean、InitializingBean、ApplicationContextAware、Ordered、ComponentSourceAware、ExpressionCapable、Orderable、MessageProducer、HeaderPropagationAware、IntegrationPattern、NamedComponent、IntegrationManagement、TrackableComponent、MessageHandler、reactor.core.CoreSubscriber<Message<?>>
- 既知の直属サブクラス
AbstractAmqpOutboundEndpoint、AbstractHttpRequestExecutingMessageHandler、AbstractMessageSplitter、AbstractRemoteFileOutboundGateway、AbstractReplyProducingPostProcessingMessageHandler、AbstractWebServiceOutboundGateway、BarrierMessageHandler、BridgeHandler、CamelMessageHandler、CassandraMessageHandler、ContentEnricher、DelayHandler、FileWritingMessageHandler、GatewayMessageHandler、GraphQlMessageHandler、JdbcOutboundGateway、JmsOutboundGateway、JpaOutboundGateway、KafkaProducerMessageHandler、MessageTransformingHandler、MongoDbOutboundGateway、OperationInvokingMessageHandler、RedisOutboundGateway、RedisQueueOutboundGateway、ReplyProducingMessageHandlerWrapper、RSocketOutboundGateway、ScatterGatherHandler、ServiceActivatingHandler、StoredProcOutboundGateway、TcpOutboundGateway
public abstract class AbstractReplyProducingMessageHandler
extends AbstractMessageProducingHandler
implements BeanClassLoaderAware
返信を生成できる MessageHandlers の基本クラス。
- 作成者:
- Mark Fisher, Iwein Fuld, Oleg Zhurakousky, Gary Russell, Artem Bilan, David Liu, Trung Pham, Christian Tzolov, Ngoc Nhan
ネストされたクラスの要約
ネストされたクラスインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverridesフィールドのサマリー
クラス org.springframework.integration.handler.AbstractMessageProducingHandler から継承されたフィールド
messagingTemplateクラス org.springframework.integration.context.IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, loggerインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEインターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected voiddoInit()protected ObjectSEdoInvokeAdvisedRequestHandler(Message<?> message) protected ClassLoaderSEこのコンポーネントが実装するパターン型を返します。protected booleanprotected final voidhandleMessageInternal(Message<?> message) protected abstract ObjectSEhandleRequestMessage(Message<?> requestMessage) サブクラスはこのメソッドを実装して、リクエストメッセージを処理する必要があります。protected booleanprotected final voidonInit()サブクラスは、初期化ロジック用にこれを実装できます。voidsetAdviceChain(ListSE<Advice> adviceChain) handleRequestMessage(Message)メソッドをプロキシするAdviceのリストを構成します。voidsetBeanClassLoader(ClassLoaderSE beanClassLoader) voidsetRequiresReply(boolean requiresReply) 返信が必要かどうかのフラグ。クラス org.springframework.integration.handler.AbstractMessageProducingHandler から継承されたメソッド
addNotPropagatedHeaders, createOutputMessage, getNotPropagatedHeaders, getOutputChannel, isAsync, messageBuilderForReply, produceOutput, resolveErrorChannel, sendErrorMessage, sendOutput, sendOutputs, setAsync, setNotPropagatedHeaders, setOutputChannel, setOutputChannelName, setSendTimeout, setupMessageProcessor, shouldCopyRequestHeaders, shouldSplitOutput, updateNotPropagatedHeadersクラス org.springframework.integration.handler.AbstractMessageHandler から継承されたメソッド
handleMessage, onComplete, onError, onNext, onSubscribe, setObservationConventionクラス org.springframework.integration.handler.MessageHandlerSupport から継承されたメソッド
buildSendTimer, destroy, getComponentType, getManagedName, getManagedType, getMetricsCaptor, getObservationRegistry, getOrder, getOverrides, isLoggingEnabled, isObserved, registerMetricsCaptor, registerObservationRegistry, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrackクラス org.springframework.integration.context.IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース reactor.core.CoreSubscriber から継承されたメソッド
currentContextインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
getThisAsインターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentName
コンストラクターの詳細
AbstractReplyProducingMessageHandler
public AbstractReplyProducingMessageHandler()
メソッドの詳細
setRequiresReply
public void setRequiresReply(boolean requiresReply) 返信が必要かどうかのフラグ。true の場合、受信メッセージは応答メッセージの送信につながる必要があります。false の場合、受信メッセージにより、返信メッセージが送信される場合があります。デフォルトは false です。- パラメーター:
requiresReply- 返信が必要な場合は true。
getRequiresReply
protected boolean getRequiresReply()setAdviceChain
handleRequestMessage(Message)メソッドをプロキシするAdviceのリストを構成します。- パラメーター:
adviceChain- 使用するAdviceのリスト。
hasAdviceChain
protected boolean hasAdviceChain()setBeanClassLoader
- 次で指定:
- インターフェース
BeanClassLoaderAwareのsetBeanClassLoader
getBeanClassLoader
getIntegrationPatternType
インターフェースからコピーされた説明:IntegrationPatternこのコンポーネントが実装するパターン型を返します。- 次で指定:
- インターフェース
IntegrationPatternのgetIntegrationPatternType - オーバーライド:
- クラス
MessageHandlerSupportのgetIntegrationPatternType - 戻り値:
- このコンポーネントが実装する
IntegrationPatternType
onInit
protected final void onInit()クラスからコピーされた説明:IntegrationObjectSupportサブクラスは、初期化ロジック用にこれを実装できます。- オーバーライド:
- クラス
AbstractMessageProducingHandlerのonInit
doInit
protected void doInit()handleMessageInternal
- 次で指定:
- クラス
AbstractMessageHandlerのhandleMessageInternal
doInvokeAdvisedRequestHandler
handleRequestMessage
サブクラスはこのメソッドを実装して、リクエストメッセージを処理する必要があります。戻り値は、メッセージ、MessageBuilder、任意のプレーンオブジェクトです。基本クラスは、これらの開始点のいずれかからの返信メッセージの最終的な作成を処理します。戻り値が null の場合、メッセージフローはここで終了します。- パラメーター:
requestMessage- リクエストメッセージ。- 戻り値:
- メッセージを処理した結果、または
null