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
protected static class SftpFileSystem.SftpClientHandle extends Object implements ChannelListener
TheSftpFileSystem.SftpClientPoolstoresSftpClients 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
Constructors Constructor Description SftpClientHandle(BlockingQueue<? extends SftpFileSystem.SftpClientHandle> pool, SftpClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelClosed(Channel channel, Throwable reason)voiddestroy()SftpClientgetClient()voidsetExpiration(Future<?> future)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.channel.ChannelListener
channelInitialized, channelOpenFailure, channelOpenSuccess, channelStateChanged
-
-
-
-
Constructor Detail
-
SftpClientHandle
public SftpClientHandle(BlockingQueue<? extends SftpFileSystem.SftpClientHandle> pool, SftpClient client)
-
-
Method Detail
-
destroy
public void destroy()
-
getClient
public SftpClient getClient()
-
setExpiration
public void setExpiration(Future<?> future)
-
channelClosed
public void channelClosed(Channel channel, Throwable reason)
- Specified by:
channelClosedin interfaceChannelListener
-
-