Package org.apache.sshd.sftp.client.fs
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 ofSftpClients. The pool has a maximum size and an optional minimum size, and can optionally expire idle channels from the pool.
-
-
Constructor Summary
Constructors Constructor Description SftpClientPool(int maxSize, Duration idleLifeTime, int coreSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanoffer(SftpClient client)SftpClientpoll()
-
-
-
Constructor Detail
-
SftpClientPool
public SftpClientPool(int maxSize, Duration idleLifeTime, int coreSize)
-
-
Method Detail
-
close
public void close()
-
poll
public SftpClient poll()
-
offer
public boolean offer(SftpClient client)
-
-