クラス JettyResourceFactory

java.lang.ObjectSE
org.springframework.http.client.reactive.JettyResourceFactory
実装されたすべてのインターフェース:
DisposableBeanInitializingBean

public class JettyResourceFactory extends ObjectSE implements InitializingBean, DisposableBean
Spring ApplicationContext のライフサイクル内で Jetty リソース、つまり ExecutorSEByteBufferPoolScheduler を管理するファクトリ。

このファクトリは InitializingBean および DisposableBean を実装し、通常、Spring 管理の Bean として宣言されることが期待されています。

導入:
5.1
作成者:
Sebastien Deleuze
  • コンストラクターのサマリー

    コンストラクター
    コンストラクター
    説明
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    void
    すべての Bean プロパティを設定し、BeanFactoryAwareApplicationContextAware などを満たした後、包含 BeanFactory によって呼び出されます。
    void
    Bean の破棄時に、包含 BeanFactory によって呼び出されます。
    org.eclipse.jetty.io.ByteBufferPool
    設定された ByteBufferPool を返します。
    設定された ExecutorSE を返します。
    org.eclipse.jetty.util.thread.Scheduler
    設定された Scheduler を返します。
    void
    setByteBufferPool(org.eclipse.jetty.io.ByteBufferPool byteBufferPool)
    使用する ByteBufferPool を構成します。
    void
    使用する ExecutorSE を構成します。
    void
    setScheduler(org.eclipse.jetty.util.thread.Scheduler scheduler)
    使用する Scheduler を構成します。
    void
    QueuedThreadPool executor を初期化するためのスレッド接頭辞を構成します。

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • コンストラクターの詳細

    • JettyResourceFactory

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

    • setExecutor

      public void setExecutor(@Nullable ExecutorSE executor)
      使用する ExecutorSE を構成します。

      デフォルトでは、QueuedThreadPool で初期化されます。

      パラメーター:
      executor - 使用するエグゼキュータ
    • setByteBufferPool

      public void setByteBufferPool(@Nullable org.eclipse.jetty.io.ByteBufferPool byteBufferPool)
      使用する ByteBufferPool を構成します。

      デフォルトでは、ArrayByteBufferPool で初期化されます。

      パラメーター:
      byteBufferPool - 使用する ByteBufferSE プール
    • setScheduler

      public void setScheduler(@Nullable org.eclipse.jetty.util.thread.Scheduler scheduler)
      使用する Scheduler を構成します。

      デフォルトでは、ScheduledExecutorScheduler で初期化されます。

      パラメーター:
      scheduler - 使用する Scheduler 
    • setThreadPrefix

      public void setThreadPrefix(StringSE threadPrefix)
      QueuedThreadPool executor を初期化するためのスレッド接頭辞を構成します。これは、ExecutorSE インスタンスが provided ではない場合にのみ使用されます。

      デフォルトでは "jetty-http" に設定されています。

      パラメーター:
      threadPrefix - 使用するスレッド接頭辞
    • getExecutor

      @Nullable public ExecutorSE getExecutor()
      設定された ExecutorSE を返します。
    • getByteBufferPool

      @Nullable public org.eclipse.jetty.io.ByteBufferPool getByteBufferPool()
      設定された ByteBufferPool を返します。
    • getScheduler

      @Nullable public org.eclipse.jetty.util.thread.Scheduler getScheduler()
      設定された Scheduler を返します。
    • afterPropertiesSet

      public void afterPropertiesSet() throws ExceptionSE
      インターフェースからコピーされた説明: InitializingBean
      すべての Bean プロパティを設定し、BeanFactoryAwareApplicationContextAware などを満たした後、包含 BeanFactory によって呼び出されます。

      このメソッドにより、Bean インスタンスは、すべての Bean プロパティが設定されたときに、その全体的な構成の検証と最終的な初期化を実行できます。

      次で指定:
      インターフェース InitializingBeanafterPropertiesSet 
      例外:
      ExceptionSE - 構成の誤り(必須プロパティの設定の失敗など)の場合、またはその他の理由で初期化が失敗した場合
    • destroy

      public void destroy() throws ExceptionSE
      インターフェースからコピーされた説明: DisposableBean
      Bean の破棄時に、包含 BeanFactory によって呼び出されます。
      次で指定:
      インターフェース DisposableBeandestroy 
      例外:
      ExceptionSE - シャットダウンエラーの場合。例外はログに記録されますが、再スローされず、他の Bean もリソースを解放できます。