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)
Called to inform about a channel being closed.
|
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)
ChannelListenerChannelListener.channelOpenSuccess(Channel) or ChannelListener.channelOpenFailure(Channel, Throwable) have been calledchannelClosed in interface ChannelListenerchannel - The referenced Channelreason - The reason why the channel is being closed - if null then normal closureCopyright © 2008–2025 The Apache Software Foundation. All rights reserved.