クラス ChannelRegistration

java.lang.ObjectSE
org.springframework.messaging.simp.config.ChannelRegistration

public class ChannelRegistration extends ObjectSE
MessageChannel の構成をカスタマイズするための登録クラス。
導入:
4.0
作成者:
Rossen Stoyanchev, Stephane Nicoll
  • コンストラクターの詳細

    • ChannelRegistration

      public ChannelRegistration()
  • メソッドの詳細

    • taskExecutor

      public TaskExecutorRegistration taskExecutor()
      このメッセージチャネルをバッキングするスレッドプールを構成します。
    • taskExecutor

      public TaskExecutorRegistration taskExecutor(@Nullable ThreadPoolTaskExecutor taskExecutor)
      カスタム ThreadPoolTaskExecutor を使用して、このメッセージチャネルをバッキングするスレッドプールを構成します。
      パラメーター:
      taskExecutor - 使用するエグゼキュータ (またはデフォルトのエグゼキューターの場合は null )
    • executor

      public ChannelRegistration executor(ExecutorSE executor)
      このメッセージチャネルに対して指定された ExecutorSE を構成し、タスクエグゼキューターの登録がある場合はそれよりも優先されます。
      パラメーター:
      executor - 使用するエグゼキュータ
      導入:
      6.2
    • interceptors

      public ChannelRegistration interceptors(ChannelInterceptor... interceptors)
      このメッセージチャネルの特定のインターセプターを構成し、インターセプターのチャネルの現在のリストに追加します。
      導入:
      4.3.12
    • hasExecutor

      protected boolean hasExecutor()
    • hasInterceptors

      protected boolean hasInterceptors()
    • getExecutor

      protected ExecutorSE getExecutor(SupplierSE<ExecutorSE> fallback, ConsumerSE<ExecutorSE> customizer)
      使用する ExecutorSE を返します。エグゼキュータが構成されていない場合は、フォールバックインスタンスを提供するために fallback サプライヤーが使用されます。

      使用する ExecutorSE がさらなるカスタマイズに適している場合は、customizer コンシューマーが呼び出されます。

      パラメーター:
      fallback - 何も設定されていない場合のフォールバックエグゼキュータのサプライヤー
      customizer - さらなるカスタマイズ
      戻り値:
      使用するエグゼキュータ
      導入:
      6.2
    • getInterceptors

      protected ListSE<ChannelInterceptor> getInterceptors()