Package org.apache.sshd.server
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.
Callback used by the shell to notify the SSH server is has exited
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
onExit
(int exitValue) Informs the SSH server that the shell has exiteddefault void
onExit
(int exitValue, boolean closeImmediately) Informs the SSH server that the shell has exiteddefault void
Informs the SSH client/server that the shell has exitedvoid
Informs the SSH client/server that the shell has exited
-
Method Details
-
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 valuecloseImmediately
- whether to also terminate the channel immediately or do a graceful close.
-
onExit
Informs the SSH client/server that the shell has exited- Parameters:
exitValue
- the exit valueexitMessage
- exit value description
-
onExit
Informs the SSH client/server that the shell has exited- Parameters:
exitValue
- the exit valueexitMessage
- exit value descriptioncloseImmediately
- whether to also terminate the channel immediately or do a graceful close.
-