クラス WebServerGracefulShutdownLifecycle
java.lang.ObjectSE
org.springframework.boot.web.context.WebServerGracefulShutdownLifecycle
- 実装されているすべてのインターフェース:
Lifecycle、Phased、SmartLifecycle
SmartLifecycle は、WebServer の正常なシャットダウンをトリガーします。- 導入:
- 2.5.0
- 作成者:
- Andy Wilkinson
フィールドのサマリー
フィールドインターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASEコンストラクターの概要
コンストラクターコンストラクター説明WebServerGracefulShutdownLifecycle(WebServer webServer) 指定されたwebServerを正常にシャットダウンする新しいWebServerGracefulShutdownLifecycleを作成します。メソッドのサマリー
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.context.SmartLifecycle から継承されたメソッド
isAutoStartup
フィールドの詳細
SMART_LIFECYCLE_PHASE
public static final int SMART_LIFECYCLE_PHASEWeb サーバーの正常なシャットダウンが実行されるSmartLifecycle phase。- 関連事項:
コンストラクターの詳細
WebServerGracefulShutdownLifecycle
指定されたwebServerを正常にシャットダウンする新しいWebServerGracefulShutdownLifecycleを作成します。- パラメーター:
webServer- 正常にシャットダウンする Web サーバー
メソッドの詳細
start
public void start()stop
public void stop()stop
- 次で指定:
- インターフェース
SmartLifecycleのstop
isRunning
public boolean isRunning()getPhase
public int getPhase()- 次で指定:
- インターフェース
PhasedのgetPhase - 次で指定:
- インターフェース
SmartLifecycleのgetPhase