Interface ExitCallback

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ExitCallback
    Callback used by the shell to notify the SSH server is has exited
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default void onExit​(int exitValue)
      Informs the SSH server that the shell has exited
      default void onExit​(int exitValue, boolean closeImmediately)
      Informs the SSH server that the shell has exited
      default void onExit​(int exitValue, java.lang.String exitMessage)
      Informs the SSH client/server that the shell has exited
      void onExit​(int exitValue, java.lang.String exitMessage, boolean closeImmediately)
      Informs the SSH client/server that the shell has exited
    • Method Detail

      • onExit

        default void onExit​(int exitValue)
        Informs the SSH server that the shell has exited
        Parameters:
        exitValue - the exit value
      • onExit

        default void onExit​(int exitValue,
                            boolean closeImmediately)
        Informs the SSH server that the shell has exited
        Parameters:
        exitValue - the exit value
        closeImmediately - whether to also terminate the channel immediately or do a graceful close.
      • onExit

        default void onExit​(int exitValue,
                            java.lang.String exitMessage)
        Informs the SSH client/server that the shell has exited
        Parameters:
        exitValue - the exit value
        exitMessage - exit value description
      • onExit

        void onExit​(int exitValue,
                    java.lang.String exitMessage,
                    boolean closeImmediately)
        Informs the SSH client/server that the shell has exited
        Parameters:
        exitValue - the exit value
        exitMessage - exit value description
        closeImmediately - whether to also terminate the channel immediately or do a graceful close.