org.springframework.shell.core

## Class ExitShellRequest

- java.lang.Object
- - org.springframework.shell.core.ExitShellRequest

-     public class ExitShellRequest
      extends Object

  An immutable representation of a request to exit the shell.

  Implementations of the shell are free to handle these requests in whatever way they wish. Callers should not expect an exit request to be completed.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static ExitShellRequest` | `FATAL_EXIT`
    `static ExitShellRequest` | `JVM_TERMINATED_EXIT`
    `static ExitShellRequest` | `NORMAL_EXIT`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getExitCode()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### NORMAL_EXIT

          public static final ExitShellRequest NORMAL_EXIT

    - #### FATAL_EXIT

          public static final ExitShellRequest FATAL_EXIT

    - #### JVM_TERMINATED_EXIT

          public static final ExitShellRequest JVM_TERMINATED_EXIT

  - ### Method Detail

    - #### getExitCode

          public int getExitCode()