类 WebServerGracefulShutdownLifecycle
java.lang.Object
org.springframework.boot.web.context.WebServerGracefulShutdownLifecycle
- 所有已实现的接口:
Lifecycle
,Phased
,SmartLifecycle
SmartLifecycle
to trigger WebServer
graceful shutdown.- 从以下版本开始:
- 2.5.0
- 作者:
- Andy Wilkinson
-
字段概要
字段修饰符和类型字段说明static final int
SmartLifecycle phase
in which graceful shutdown of the web server is performed.从接口继承的字段 org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
构造器概要
构造器构造器说明WebServerGracefulShutdownLifecycle
(WebServer webServer) Creates a newWebServerGracefulShutdownLifecycle
that will gracefully shut down the givenwebServer
. -
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.context.SmartLifecycle
isAutoStartup
-
字段详细资料
-
SMART_LIFECYCLE_PHASE
public static final int SMART_LIFECYCLE_PHASESmartLifecycle phase
in which graceful shutdown of the web server is performed.- 另请参阅:
-
-
构造器详细资料
-
WebServerGracefulShutdownLifecycle
Creates a newWebServerGracefulShutdownLifecycle
that will gracefully shut down the givenwebServer
.- 参数:
webServer
- web server to shut down gracefully
-
-
方法详细资料