Enum Class GracefulShutdownResult

java.lang.Object
java.lang.Enum<GracefulShutdownResult>
org.springframework.boot.web.server.GracefulShutdownResult
All Implemented Interfaces:
Serializable, Comparable<GracefulShutdownResult>, Constable

public enum GracefulShutdownResult extends Enum<GracefulShutdownResult>
The result of a graceful shutdown request.
Since:
2.3.0
Author:
Andy Wilkinson
See Also:
  • Enum Constant Details

    • REQUESTS_ACTIVE

      public static final GracefulShutdownResult REQUESTS_ACTIVE
      Requests remained active at the end of the grace period.
    • IDLE

      public static final GracefulShutdownResult IDLE
      The server was idle with no active requests at the end of the grace period.
    • IMMEDIATE

      public static final GracefulShutdownResult IMMEDIATE
      The server was shutdown immediately, ignoring any active requests.
  • Method Details

    • values

      public static GracefulShutdownResult[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GracefulShutdownResult valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null