Class WebServerGracefulShutdownLifecycle

java.lang.Object
org.springframework.boot.web.context.WebServerGracefulShutdownLifecycle
All Implemented Interfaces:
Lifecycle, Phased, SmartLifecycle

public final class WebServerGracefulShutdownLifecycle extends Object implements SmartLifecycle
SmartLifecycle to trigger WebServer graceful shutdown.
Since:
2.5.0
Author:
Andy Wilkinson
  • Field Details

  • Constructor Details

    • WebServerGracefulShutdownLifecycle

      public WebServerGracefulShutdownLifecycle(WebServer webServer)
      Creates a new WebServerGracefulShutdownLifecycle that will gracefully shut down the given webServer.
      Parameters:
      webServer - web server to shut down gracefully
  • Method Details