Package org.apache.sshd.sftp.client.fs
Class SftpFileSystem.SftpClientPool
java.lang.Object
org.apache.sshd.sftp.client.fs.SftpFileSystem.SftpClientPool
- Enclosing class:
SftpFileSystem
A pool of
SftpClient
s. The pool has a maximum size and an optional minimum size, and can optionally
expire idle channels from the pool.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final long
private final BlockingQueue
<SftpFileSystem.SftpClientHandle> private final ScheduledExecutorService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private void
boolean
offer
(SftpClient client) poll()
-
Field Details
-
timeouts
-
pool
-
idleLifeTime
private final long idleLifeTime -
coreSize
private final int coreSize
-
-
Constructor Details
-
SftpClientPool
-
-
Method Details
-
close
public void close() -
poll
-
offer
-
closeSilently
-