Class SftpFileSystem.SftpClientPool

java.lang.Object
org.apache.sshd.sftp.client.fs.SftpFileSystem.SftpClientPool
Enclosing class:
SftpFileSystem

protected class SftpFileSystem.SftpClientPool extends Object
A pool of SftpClients. The pool has a maximum size and an optional minimum size, and can optionally expire idle channels from the pool.
  • Constructor Details

    • SftpClientPool

      public SftpClientPool(int maxSize, Duration idleLifeTime, int coreSize)
  • Method Details

    • close

      public void close()
    • poll

      public SftpClient poll()
    • offer

      public boolean offer(SftpClient client)