Package org.apache.sshd.sftp.client.fs
Class SftpFileSystem.SftpClientHandle
java.lang.Object
org.apache.sshd.sftp.client.fs.SftpFileSystem.SftpClientHandle
- All Implemented Interfaces:
EventListener,ChannelListener,org.apache.sshd.common.util.SshdEventListener
- Enclosing class:
SftpFileSystem
The
SftpFileSystem.SftpClientPool stores SftpClients not directly but via handles in its channel pool. HAndles
remove themselves from the pool-
Field Summary
Fields inherited from interface org.apache.sshd.common.channel.ChannelListener
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionSftpClientHandle(BlockingQueue<? extends SftpFileSystem.SftpClientHandle> pool, SftpClient client) -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelClosed(Channel channel, Throwable reason) voiddestroy()voidsetExpiration(Future<?> future) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sshd.common.channel.ChannelListener
channelInitialized, channelOpenFailure, channelOpenSuccess, channelStateChanged
-
Constructor Details
-
SftpClientHandle
public SftpClientHandle(BlockingQueue<? extends SftpFileSystem.SftpClientHandle> pool, SftpClient client)
-
-
Method Details
-
destroy
public void destroy() -
getClient
-
setExpiration
-
channelClosed
- Specified by:
channelClosedin interfaceChannelListener
-