protected static class SftpFileSystem.SftpClientHandle extends Object implements ChannelListener
SftpFileSystem.SftpClientPool stores SftpClients not directly but via handles in its channel pool. HAndles
remove themselves from the poolEMPTY| Constructor and Description |
|---|
SftpClientHandle(BlockingQueue<? extends SftpFileSystem.SftpClientHandle> pool,
SftpClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelClosed(Channel channel,
Throwable reason) |
void |
destroy() |
SftpClient |
getClient() |
void |
setExpiration(Future<?> future) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchannelInitialized, channelOpenFailure, channelOpenSuccess, channelStateChanged, validateListenervalidateListenerpublic SftpClientHandle(BlockingQueue<? extends SftpFileSystem.SftpClientHandle> pool, SftpClient client)
public void destroy()
public SftpClient getClient()
public void setExpiration(Future<?> future)
public void channelClosed(Channel channel, Throwable reason)
channelClosed in interface ChannelListenerCopyright © 2018–2024 The Apache Software Foundation. All rights reserved.