Class WebServerGracefulShutdownLifecycle

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

public final class WebServerGracefulShutdownLifecycle extends Object implements SmartLifecycle
SmartLifecycle to trigger WebServer graceful shutdown.
Since:
4.0.0
Author:
Andy Wilkinson
  • 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