Interface JschExecutor<T>

Type Parameters:
T - the type of the value returned by this executor.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface JschExecutor<T>
Executes an operation using a managed Java Secure Channel (JSCH).
  • Method Summary

    Modifier and Type
    Method
    Description
    Executes an operation using supplied Java Secure Channel (JSCH).
  • Method Details

    • executeJsch

      T executeJsch(Session session) throws Exception
      Executes an operation using supplied Java Secure Channel (JSCH).
      Parameters:
      session - the Java Secure Channel session.
      Returns:
      the value computed by the executor.
      Throws:
      Exception - if an error occurs.