Top Description Methods
org.apache.sshd.server

public Interface ExitCallback

Annotations
@FunctionalInterface

Callback used by the shell to notify the SSH server is has exited

Method Summary

Modifier and TypeMethod and Description
public default void
onExit(int
the exit value
exitValue
)

Informs the SSH server that the shell has exited

public default void
onExit(int
the exit value
exitValue
,
boolean
whether to also terminate the channel immediately or do a graceful close.
closeImmediately
)

Informs the SSH server that the shell has exited

public default void
onExit(int
the exit value
exitValue
,
String
exit value description
exitMessage
)

Informs the SSH client/server that the shell has exited

public void
onExit(int
the exit value
exitValue
,
String
exit value description
exitMessage
,
boolean
whether to also terminate the channel immediately or do a graceful close.
closeImmediately
)

Informs the SSH client/server that the shell has exited

Method Detail

onExitback to summary
public default void onExit(int exitValue)

Informs the SSH server that the shell has exited

Parameters
exitValue:int

the exit value

onExitback to summary
public default void onExit(int exitValue, boolean closeImmediately)

Informs the SSH server that the shell has exited

Parameters
exitValue:int

the exit value

closeImmediately:boolean

whether to also terminate the channel immediately or do a graceful close.

onExitback to summary
public default void onExit(int exitValue, String exitMessage)

Informs the SSH client/server that the shell has exited

Parameters
exitValue:int

the exit value

exitMessage:String

exit value description

onExitback to summary
public void onExit(int exitValue, String exitMessage, boolean closeImmediately)

Informs the SSH client/server that the shell has exited

Parameters
exitValue:int

the exit value

exitMessage:String

exit value description

closeImmediately:boolean

whether to also terminate the channel immediately or do a graceful close.