クラス 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