クラス ConsumerEndpointSpec<S extends ConsumerEndpointSpec<S,H>, H extends MessageHandler>
java.lang.ObjectSE
org.springframework.integration.dsl.IntegrationComponentSpec <S, reacters.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を使用してTransactionInterceptorAdviceを指定します。transactional(boolean handleMessageAdvice) MessageHandlerにはデフォルトのPlatformTransactionManagerおよびDefaultTransactionAttributeを使用してTransactionInterceptorAdviceを指定します。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 から継承されたメソッド
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インターフェース org.springframework.context.SmartLifecycle から継承されたメソッド
isPauseable
フィールドの詳細
adviceChain
コンストラクターの詳細
ConsumerEndpointSpec
protected ConsumerEndpointSpec()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を構成します。デフォルトでは、グローバルThreadPoolTaskSchedulerBean が使用されます。この構成は、たとえばポーリングタスクに特定のスレッドを専用にする必要がある場合に役立ちます。- パラメーター:
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を使用してTransactionInterceptorAdviceを指定します。- 戻り値:
- スペック。
transactional
MessageHandlerにはデフォルトのPlatformTransactionManagerおよびDefaultTransactionAttributeを使用してTransactionInterceptorAdviceを指定します。- パラメーター:
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-BiFunctionSE はReactiveRequestHandlerAdviceに伝播します。- 戻り値:
- スペック。
- 導入:
- 5.3
- 関連事項:
requiresReply
- パラメーター:
requiresReply- requiresReply。- 戻り値:
- エンドポイント仕様。
- 関連事項:
sendTimeout
- パラメーター:
sendTimeout- 送信タイムアウト。- 戻り値:
- エンドポイント仕様。
- 関連事項:
order
- パラメーター:
order- オーダー。- 戻り値:
- エンドポイント仕様。
- 関連事項:
async
非同期応答を許可します。ハンドラー応答がCompletableFutureSE の場合は、結果として将来を送信するのではなく、満足したときに出力を送信します。ハンドラーの戻り値の型がCompletableFutureSE 以外の場合は無視されます。- パラメーター:
async- 許可する場合は true。- 戻り値:
- エンドポイント仕様。
- 関連事項:
notPropagatedHeaders
doGet
- オーバーライド:
- クラス
EndpointSpec<S extends ConsumerEndpointSpec<S,のH>, ConsumerEndpointFactoryBean, H extends MessageHandler> doGet