Class 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 Detail

      • SftpClientPool

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

      • close

        public void close()
      • offer

        public boolean offer​(SftpClient client)