クラス ConsumerEndpointSpec<S extends ConsumerEndpointSpec<S,H>,H extends MessageHandler>
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>
- 型パラメーター:
S
- ターゲットConsumerEndpointSpec
実装型。H
- ターゲットMessageHandler
実装型。
- 実装されたすべてのインターフェース:
DisposableBean
、FactoryBean<reactor.util.function.Tuple2<ConsumerEndpointFactoryBean,
、H>> InitializingBean
、Lifecycle
、Phased
、SmartLifecycle
、ComponentsRegistration
- 既知の直属サブクラス
AbstractRouterSpec
、BarrierSpec
、CorrelationHandlerSpec
、DelayerEndpointSpec
、EnricherSpec
、FilterEndpointSpec
、GatewayEndpointSpec
、GenericEndpointSpec
、HeaderEnricherSpec
、HeaderFilterSpec
、ScatterGatherSpec
、SplitterSpec
、TransformerEndpointSpec
public abstract class ConsumerEndpointSpec<S extends ConsumerEndpointSpec<S,H>,H extends MessageHandler>
extends EndpointSpec<S,ConsumerEndpointFactoryBean,H>
コンシューマーエンドポイントの
EndpointSpec
。- 導入:
- 5.0
- 作成者:
- Artem Bilan, Gary Russell
フィールドのサマリー
フィールドクラス 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
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明ネストされた順序でエンドポイントのハンドラーに適用されるAdvice
オブジェクトのリストを構成します。async
(boolean async) 非同期返信を許可します。autoStartup
(boolean autoStartup) <T,
V> S customizeMonoReply
(BiFunctionSE<Message<?>, reactor.core.publisher.Mono<T>, org.reactivestreams.Publisher<V>> replyCustomizer) protected reactor.util.function.Tuple2
<ConsumerEndpointFactoryBean, H> doGet()
handleMessageAdvice
(MethodInterceptor... interceptors) ネストされた順序でエンドポイントのハンドラーに適用されるMethodInterceptor
オブジェクトのリストを構成します。notPropagatedHeaders
(StringSE... headerPatterns) 受信メッセージからコピーされないヘッダーパターン("xxx*"、"*xxx"、"*xxx*"、または "xxx* yyy")を設定します。order
(int order) phase
(int phase) poller
(PollerMetadata pollerMetadata) reactive()
コンシューマーエンドポイントを入力チャネルとは独立してリアクティブにします。reactive
(FunctionSE<? super reactor.core.publisher.Flux<Message<?>>, ? extends org.reactivestreams.Publisher<Message<?>>> reactiveCustomizer) コンシューマーエンドポイントを入力チャネルとは独立してリアクティブとして作成し、提供された関数をFlux.transform(Function)
オペレーターに適用します。requiresReply
(boolean requiresReply) エンドポイントのロールを指定します。sendTimeout
(long sendTimeout) taskScheduler
(TaskScheduler taskScheduler) ポーリングコンシューマーなどで、タスクをスケジュールするためにTaskScheduler
を構成します。MessageHandler
にはデフォルトのPlatformTransactionManager
およびDefaultTransactionAttribute
を使用してTransactionInterceptor
Advice
を指定します。transactional
(boolean handleMessageAdvice) MessageHandler
にはデフォルトのPlatformTransactionManager
およびDefaultTransactionAttribute
を使用してTransactionInterceptor
Advice
を指定します。transactional
(TransactionInterceptor transactionInterceptor) transactional
(TransactionManager transactionManager) TransactionInterceptor
を指定します。Advice
は、提供されているPlatformTransactionManager
を使用し、MessageHandler
にはデフォルトのDefaultTransactionAttribute
を指定します。transactional
(TransactionManager transactionManager, boolean handleMessageAdvice) TransactionInterceptor
を指定します。Advice
は、提供されているPlatformTransactionManager
を使用し、MessageHandler
にはデフォルトのDefaultTransactionAttribute
を指定します。クラス 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
フィールドの詳細
adviceChain
コンストラクターの詳細
ConsumerEndpointSpec
メソッドの詳細
phase
- 次で指定:
- クラス
EndpointSpec<S extends ConsumerEndpointSpec<S,
のH>, ConsumerEndpointFactoryBean, H extends MessageHandler> phase
- パラメーター:
phase
- フェーズ。- 戻り値:
- エンドポイント仕様。
- 関連事項:
autoStartup
- 次で指定:
- クラス
EndpointSpec<S extends ConsumerEndpointSpec<S,
のH>, ConsumerEndpointFactoryBean, H extends MessageHandler> autoStartup
- パラメーター:
autoStartup
- autoStartup。- 戻り値:
- エンドポイント仕様
- 関連事項:
poller
- 次で指定:
- クラス
EndpointSpec<S extends ConsumerEndpointSpec<S,
のH>, ConsumerEndpointFactoryBean, H extends MessageHandler> poller
- パラメーター:
pollerMetadata
- pollerMetadata- 戻り値:
- エンドポイント仕様。
- 関連事項:
reactive
reactive
public S reactive(FunctionSE<? super reactor.core.publisher.Flux<Message<?>>, ? extends org.reactivestreams.Publisher<Message<?>>> reactiveCustomizer) コンシューマーエンドポイントを入力チャネルとは独立してリアクティブとして作成し、提供された関数をFlux.transform(Function)
オペレーターに適用します。- パラメーター:
reactiveCustomizer
- 入力チャネルのFlux
を変換する関数。- 戻り値:
- スペック
- 導入:
- 5.5
role
クラスからコピーされた説明:EndpointSpec
エンドポイントのロールを指定します。このようなエンドポイントは、グループとして開始 / 停止できます。- 次で指定:
- クラス
EndpointSpec<S extends ConsumerEndpointSpec<S,
のH>, ConsumerEndpointFactoryBean, H extends MessageHandler> role
- パラメーター:
role
- このエンドポイントのロール。- 戻り値:
- エンドポイント仕様
- 関連事項:
taskScheduler
たとえば、ポーリングコンシューマーでタスクをスケジュールするためにTaskScheduler
を構成します。デフォルトでは、グローバルThreadPoolTaskScheduler
Bean が使用されます。この構成は、たとえばポーリングタスクに特定のスレッドを専用にする必要がある場合に役立ちます。- パラメーター:
taskScheduler
- 使用するTaskScheduler
。- 戻り値:
- エンドポイント仕様。
- 関連事項:
handleMessageAdvice
エンドポイントのハンドラーにネストされた順序で適用されるMethodInterceptor
オブジェクトのリストを構成します。アドバイスオブジェクトはhandleMessage()
メソッドに適用され、その後サブフロー全体に適用されます。- パラメーター:
interceptors
- アドバイスチェーン。- 戻り値:
- エンドポイント仕様。
- 導入:
- 5.3
advice
transactional
TransactionInterceptor
を指定します。Advice
は、提供されているPlatformTransactionManager
を使用し、MessageHandler
にはデフォルトのDefaultTransactionAttribute
を指定します。- パラメーター:
transactionManager
- 使用するTransactionManager
。- 戻り値:
- スペック。
transactional
TransactionInterceptor
を指定します。Advice
は、提供されているPlatformTransactionManager
を使用し、MessageHandler
にはデフォルトのDefaultTransactionAttribute
を指定します。- パラメーター:
transactionManager
- 使用するTransactionManager
。handleMessageAdvice
- ターゲットAdvice
型を示すフラグ:false
- 通常のTransactionInterceptor
;true
-TransactionHandleMessageAdvice
拡張。- 戻り値:
- スペック。
transactional
- パラメーター:
transactionInterceptor
- 使用するTransactionInterceptor
。- 戻り値:
- スペック。
- 関連事項:
transactional
MessageHandler
にはデフォルトのPlatformTransactionManager
およびDefaultTransactionAttribute
を使用してTransactionInterceptor
Advice
を指定します。- 戻り値:
- スペック。
transactional
MessageHandler
にはデフォルトのPlatformTransactionManager
およびDefaultTransactionAttribute
を使用してTransactionInterceptor
Advice
を指定します。- パラメーター:
handleMessageAdvice
- ターゲットAdvice
型を示すフラグ:false
- 通常のTransactionInterceptor
;true
-TransactionHandleMessageAdvice
拡張。- 戻り値:
- スペック。
customizeMonoReply
public <T,V> S customizeMonoReply(BiFunctionSE<Message<?>, reactor.core.publisher.Mono<T>, org.reactivestreams.Publisher<V>> replyCustomizer) - 型パラメーター:
T
- 受信応答ペイロード。V
- 送信応答ペイロード。- パラメーター:
replyCustomizer
-BiFunction
SE はReactiveRequestHandlerAdvice
に伝播します。- 戻り値:
- スペック。
- 導入:
- 5.3
- 関連事項:
requiresReply
- パラメーター:
requiresReply
- requiresReply。- 戻り値:
- エンドポイント仕様。
- 関連事項:
sendTimeout
- パラメーター:
sendTimeout
- 送信タイムアウト。- 戻り値:
- エンドポイント仕様。
- 関連事項:
order
- パラメーター:
order
- オーダー。- 戻り値:
- エンドポイント仕様。
- 関連事項:
async
非同期応答を許可します。ハンドラー応答がCompletableFuture
SE の場合は、結果として将来を送信するのではなく、満足したときに出力を送信します。ハンドラーの戻り値の型がCompletableFuture
SE 以外の場合は無視されます。- パラメーター:
async
- 許可する場合は true。- 戻り値:
- エンドポイント仕様。
- 関連事項:
notPropagatedHeaders
doGet
- オーバーライド:
- クラス
EndpointSpec<S extends ConsumerEndpointSpec<S,
のH>, ConsumerEndpointFactoryBean, H extends MessageHandler> doGet