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 Details

    • setIoInputStream

      void setIoInputStream(IoInputStream in)
      Set the input stream that can be used by the shell to read input.
      Parameters:
      in - The IoInputStream 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 - The IoOutputStream 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 - The IoOutputStream used by the shell to write its errors