クラス CorrelationHandlerSpec<S extends CorrelationHandlerSpec<S,H>,H extends AbstractCorrelatingMessageHandler>
java.lang.ObjectSE
org.springframework.integration.dsl.IntegrationComponentSpec <S、reactor.util.function.Tuple2< ConsumerEndpointFactoryBean、H>>
org.springframework.integration.dsl.EndpointSpec<S,ConsumerEndpointFactoryBean,H>
org.springframework.integration.dsl.ConsumerEndpointSpec<S,H>
org.springframework.integration.dsl.CorrelationHandlerSpec<S,H>
- 型パラメーター:
S
- ターゲットCorrelationHandlerSpec
実装型。H
-AbstractCorrelatingMessageHandler
実装型。
- 実装されたすべてのインターフェース:
DisposableBean
、FactoryBean<reactor.util.function.Tuple2<ConsumerEndpointFactoryBean,
、H>> InitializingBean
、Lifecycle
、Phased
、SmartLifecycle
、ComponentsRegistration
- 既知の直属サブクラス
AggregatorSpec
,ResequencerSpec
public abstract class CorrelationHandlerSpec<S extends CorrelationHandlerSpec<S,H>,H extends AbstractCorrelatingMessageHandler>
extends ConsumerEndpointSpec<S,H>
- 導入:
- 5.0
- 作成者:
- Artem Bilan, Gary Russell
フィールドのサマリー
クラス org.springframework.integration.dsl.ConsumerEndpointSpec から継承されたフィールド
adviceChain
クラス org.springframework.integration.dsl.EndpointSpec から継承されたフィールド
componentsToRegister, endpointFactoryBean, handler
クラス org.springframework.integration.dsl.IntegrationComponentSpec から継承されたフィールド
logger, PARSER, target
インターフェース org.springframework.beans.factory.FactoryBean から継承されたフィールド
OBJECT_TYPE_ATTRIBUTE
インターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASE
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明correlationExpression
(StringSE correlationExpression) 指定された式のExpressionEvaluatingCorrelationStrategy
でハンドラーを構成します。correlationStrategy
(ObjectSE target, StringSE methodName) ターゲットオブジェクトとメソッド名のMethodInvokingCorrelationStrategy
でハンドラーを構成します。correlationStrategy
(CorrelationStrategy correlationStrategy) discardChannel
(StringSE discardChannelName) discardChannel
(MessageChannel discardChannel) expireDuration
(DurationSE expireDuration) スケジュールされたパージタスクを実行する頻度をDuration
SE に設定します。expireGroupsUponTimeout
(boolean expireGroupsUponTimeout) タイムアウトのためにグループが完了した場合、グループを期限切れ(完全に削除)します。expireTimeout
(long expireTimeout) ストア内の古いグループがパージするタイムアウトを構成します。forceReleaseAdvice
(Advice... advice) forceComplete()
操作に適用するAdvice
オブジェクトのリストを構成します。groupConditionSupplier
(BiFunctionSE<Message<?>, StringSE, StringSE> conditionSupplier) グループに追加されるメッセージからグループ条件を提供するようにBiFunction
SE を構成します。groupTimeout
(long groupTimeout) この定数値に評価されるグループタイムアウト式でハンドラーを構成します。groupTimeout
(FunctionSE<MessageGroup, ?> groupTimeoutFunction) メッセージグループに基づいて、グループタイムアウトを解決するために呼び出される関数でハンドラーを構成します。groupTimeoutExpression
(StringSE groupTimeoutExpression) SpEL 式を指定して、スケジュールされた有効期限のグループタイムアウトを評価します。lockRegistry
(LockRegistry lockRegistry) MessageGroup
での同時操作のために、groupId
に基づいてLock
を取得するために使用されます。messageStore
(MessageGroupStore messageStore) minimumTimeoutForEmptyGroups
(long minimumTimeoutForEmptyGroups) popSequence
(boolean popSequence) 出力メッセージに対してBaseMessageBuilder.popSequenceDetails()
を実行するかどうか。各関数に適切にアノテーションが付けられたメソッドを持つ必要があるターゲットオブジェクトを使用して、MethodInvokingCorrelationStrategy
およびMethodInvokingReleaseStrategy
でハンドラーを構成します。releaseExpression
(StringSE releaseExpression) 指定された式のExpressionEvaluatingReleaseStrategy
でハンドラーを構成します。releaseLockBeforeSend
(boolean releaseLockBeforeSend) true に設定すると、出力を送信する前にメッセージグループロックが解除されます。releaseStrategy
(ObjectSE target, StringSE methodName) ターゲットオブジェクトとメソッド名のMethodInvokingReleaseStrategy
でハンドラーを構成します。releaseStrategy
(ReleaseStrategy releaseStrategy) sendPartialResultOnExpiry
(boolean sendPartialResultOnExpiry) taskScheduler
(TaskScheduler taskScheduler) ポーリングコンシューマーなどで、タスクをスケジュールするためにTaskScheduler
を構成します。クラス org.springframework.integration.dsl.ConsumerEndpointSpec から継承されたメソッド
advice, async, autoStartup, customizeMonoReply, doGet, handleMessageAdvice, notPropagatedHeaders, order, phase, poller, reactive, reactive, requiresReply, role, sendTimeout, transactional, transactional, transactional, transactional, transactional
クラス org.springframework.integration.dsl.EndpointSpec から継承されたメソッド
assertHandler, getComponentsToRegister, id, obtainInputChannelFromFlow, obtainInputChannelFromFlow, poller, poller
クラス org.springframework.integration.dsl.IntegrationComponentSpec から継承されたメソッド
_this, afterPropertiesSet, destroy, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.beans.factory.FactoryBean から継承されたメソッド
isSingleton
コンストラクターの詳細
CorrelationHandlerSpec
メソッドの詳細
messageStore
- パラメーター:
messageStore
- メッセージグループストア。- 戻り値:
- ハンドラーの仕様。
- 関連事項:
sendPartialResultOnExpiry
- パラメーター:
sendPartialResultOnExpiry
- sendPartialResultOnExpiry。- 戻り値:
- ハンドラーの仕様。
- 関連事項:
minimumTimeoutForEmptyGroups
- パラメーター:
minimumTimeoutForEmptyGroups
- minimumTimeoutForEmptyGroups- 戻り値:
- ハンドラーの仕様。
- 関連事項:
groupTimeout
この定数値に評価されるグループタイムアウト式でハンドラーを構成します。- パラメーター:
groupTimeout
- グループのタイムアウト(ミリ秒)。- 戻り値:
- ハンドラーの仕様。
- 関連事項:
groupTimeoutExpression
groupTimeout
taskScheduler
クラスからコピーされた説明:ConsumerEndpointSpec
たとえば、ポーリングコンシューマーでタスクをスケジュールするためにTaskScheduler
を構成します。デフォルトでは、グローバルThreadPoolTaskScheduler
Bean が使用されます。この構成は、たとえばポーリングタスクに特定のスレッドを専用にする必要がある場合に役立ちます。- オーバーライド:
- クラス
ConsumerEndpointSpec<S extends CorrelationHandlerSpec<S,
のH>, H extends AbstractCorrelatingMessageHandler> taskScheduler
- パラメーター:
taskScheduler
- タスクスケジューラ。- 戻り値:
- ハンドラーの仕様。
- 関連事項:
discardChannel
- パラメーター:
discardChannel
- 廃棄チャネル。- 戻り値:
- ハンドラーの仕様。
- 関連事項:
discardChannel
processor
各関数に適切にアノテーションが付けられたメソッドを持つ必要があるターゲットオブジェクトを使用して、MethodInvokingCorrelationStrategy
およびMethodInvokingReleaseStrategy
でハンドラーを構成します。- パラメーター:
target
- ターゲットオブジェクト- 戻り値:
- ハンドラーの仕様。
- 関連事項:
correlationExpression
指定された式のExpressionEvaluatingCorrelationStrategy
でハンドラーを構成します。- パラメーター:
correlationExpression
- 相関式。- 戻り値:
- ハンドラーの仕様。
- 関連事項:
correlationStrategy
ターゲットオブジェクトとメソッド名のMethodInvokingCorrelationStrategy
でハンドラーを構成します。- パラメーター:
target
- ターゲットオブジェクト。methodName
- メソッド名。- 戻り値:
- ハンドラーの仕様。
- 関連事項:
correlationStrategy
- パラメーター:
correlationStrategy
- 相関戦略。- 戻り値:
- ハンドラーの仕様。
- 関連事項:
releaseExpression
指定された式のExpressionEvaluatingReleaseStrategy
でハンドラーを構成します。- パラメーター:
releaseExpression
- 相関式。- 戻り値:
- ハンドラーの仕様。
- 関連事項:
releaseStrategy
ターゲットオブジェクトとメソッド名のMethodInvokingReleaseStrategy
でハンドラーを構成します。- パラメーター:
target
- ターゲットオブジェクト。methodName
- メソッド名。- 戻り値:
- ハンドラーの仕様。
- 関連事項:
releaseStrategy
- パラメーター:
releaseStrategy
- リリース戦略。- 戻り値:
- ハンドラーの仕様。
- 関連事項:
expireGroupsUponTimeout
タイムアウトのためにグループが完了した場合、グループを期限切れにします(完全に削除します)。アグリゲーターのデフォルトのtrue
とリシーケンサーのfalse
。- パラメーター:
expireGroupsUponTimeout
- 設定する expireGroupsUponTimeout- 戻り値:
- ハンドラーの仕様。
- 関連事項:
forceReleaseAdvice
lockRegistry
MessageGroup
での同時操作のためにgroupId
に基づいてLock
を取得するために使用されます。デフォルトでは、内部DefaultLockRegistry
が使用されます。RedisLockRegistry
などの分散LockRegistry
を使用すると、アグリゲーターの 1 つのインスタンスのみがグループで同時に動作することが保証されます。- パラメーター:
lockRegistry
- 使用するLockRegistry
。- 戻り値:
- エンドポイント仕様。
popSequence
出力メッセージに対してBaseMessageBuilder.popSequenceDetails()
を実行するかどうか。- パラメーター:
popSequence
- 使用するブールフラグ。- 戻り値:
- エンドポイント仕様。
- 導入:
- 5.1
- 関連事項:
expireTimeout
ストア内の古いグループがパージするタイムアウトを構成します。- パラメーター:
expireTimeout
- 使用するミリ秒単位のタイムアウト。- 戻り値:
- エンドポイント仕様。
- 導入:
- 5.5
- 関連事項:
expireDuration
スケジュールされたパージタスクを実行する頻度をDuration
SE に設定します。- パラメーター:
expireDuration
- スケジュールされたパージタスクの期間。- 戻り値:
- エンドポイント仕様。
- 導入:
- 5.5
- 関連事項:
releaseLockBeforeSend
true に設定すると、出力を送信する前にメッセージグループロックが解除されます。これが必要になる理由の詳細については、リファレンスマニュアルの「アグリゲーター」セクションの「デッドロックの回避」を参照してください。- パラメーター:
releaseLockBeforeSend
- ロックを解除するには true。- 戻り値:
- エンドポイント仕様。
- 導入:
- 5.5
- 関連事項:
groupConditionSupplier
グループに追加されるメッセージからグループ条件を提供するようにBiFunction
SE を構成します。関数からのnull
の結果は、以前に設定された条件をリセットします。- パラメーター:
conditionSupplier
- グループに追加するメッセージからグループ条件を提供する機能。- 戻り値:
- エンドポイント仕様。
- 導入:
- 5.5