Package org.apache.sshd.server.command
Interface AsyncCommand
-
- All Superinterfaces:
Command
,CommandLifecycle
- All Known Implementing Classes:
SftpSubsystem
public interface AsyncCommand extends Command
Represents a command capable of doing non-blocking io. If this interface is implemented by a command, the usual blocking input / output / error streams won't be set.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setIoErrorStream(IoOutputStream err)
Set the error stream that can be used by the shell to write its errors.void
setIoInputStream(IoInputStream in)
Set the input stream that can be used by the shell to read input.void
setIoOutputStream(IoOutputStream out)
Set the output stream that can be used by the shell to write its output.-
Methods inherited from interface org.apache.sshd.server.command.Command
setErrorStream, setExitCallback, setInputStream, setOutputStream
-
Methods inherited from interface org.apache.sshd.server.command.CommandLifecycle
destroy, start
-
-
-
-
Method Detail
-
setIoInputStream
void setIoInputStream(IoInputStream in)
Set the input stream that can be used by the shell to read input.- Parameters:
in
- TheIoInputStream
used by the shell to read input
-
setIoOutputStream
void setIoOutputStream(IoOutputStream out)
Set the output stream that can be used by the shell to write its output.- Parameters:
out
- TheIoOutputStream
used by the shell to write its output
-
setIoErrorStream
void setIoErrorStream(IoOutputStream err)
Set the error stream that can be used by the shell to write its errors.- Parameters:
err
- TheIoOutputStream
used by the shell to write its errors
-
-