@FunctionalInterface public interface ExitCallback
Modifier and Type | Method and 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,
String exitMessage)
Informs the SSH client/server that the shell has exited
|
void |
onExit(int exitValue,
String exitMessage,
boolean closeImmediately)
Informs the SSH client/server that the shell has exited
|
default void onExit(int exitValue)
exitValue
- the exit valuedefault void onExit(int exitValue, boolean closeImmediately)
exitValue
- the exit valuecloseImmediately
- whether to also terminate the channel immediately or do a graceful close.default void onExit(int exitValue, String exitMessage)
exitValue
- the exit valueexitMessage
- exit value descriptionvoid onExit(int exitValue, String exitMessage, boolean closeImmediately)
exitValue
- the exit valueexitMessage
- exit value descriptioncloseImmediately
- whether to also terminate the channel immediately or do a graceful close.Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.