クラス WebServerGracefulShutdownLifecycle

java.lang.ObjectSE
org.springframework.boot.web.context.WebServerGracefulShutdownLifecycle
実装されたすべてのインターフェース:
LifecyclePhasedSmartLifecycle

public final class WebServerGracefulShutdownLifecycle extends ObjectSE implements SmartLifecycle
SmartLifecycle は、WebServer の正常なシャットダウンをトリガーします。
導入:
2.5.0
作成者:
Andy Wilkinson
  • フィールドの詳細

  • コンストラクターの詳細

    • WebServerGracefulShutdownLifecycle

      public WebServerGracefulShutdownLifecycle(WebServer webServer)
      指定された webServer を正常にシャットダウンする新しい WebServerGracefulShutdownLifecycle を作成します。
      パラメーター:
      webServer - 正常にシャットダウンする Web サーバー
  • メソッドの詳細

    • start

      public void start()
      次で指定:
      インターフェース Lifecyclestart 
    • stop

      public void stop()
      次で指定:
      インターフェース Lifecyclestop 
    • stop

      public void stop(RunnableSE callback)
      次で指定:
      インターフェース SmartLifecyclestop 
    • isRunning

      public boolean isRunning()
      次で指定:
      インターフェース LifecycleisRunning 
    • getPhase

      public int getPhase()
      次で指定:
      インターフェース PhasedgetPhase 
      次で指定:
      インターフェース SmartLifecyclegetPhase