类 WebServerGracefulShutdownLifecycle

java.lang.Object
org.springframework.boot.web.context.WebServerGracefulShutdownLifecycle
所有已实现的接口:
Lifecycle, Phased, SmartLifecycle

public final class WebServerGracefulShutdownLifecycle extends Object implements SmartLifecycle
SmartLifecycle to trigger WebServer graceful shutdown.
从以下版本开始:
2.5.0
作者:
Andy Wilkinson
  • 字段详细资料

    • SMART_LIFECYCLE_PHASE

      public static final int SMART_LIFECYCLE_PHASE
      SmartLifecycle phase in which graceful shutdown of the web server is performed.
      另请参阅:
  • 构造器详细资料

    • WebServerGracefulShutdownLifecycle

      public WebServerGracefulShutdownLifecycle(WebServer webServer)
      Creates a new WebServerGracefulShutdownLifecycle that will gracefully shut down the given webServer.
      参数:
      webServer - web server to shut down gracefully
  • 方法详细资料