Class AsyncSshHandlerReader
- java.lang.Object
-
- org.opendaylight.netconf.nettyutil.handler.ssh.client.AsyncSshHandlerReader
-
- All Implemented Interfaces:
AutoCloseable,EventListener,org.opendaylight.netconf.shaded.sshd.common.future.SshFutureListener<org.opendaylight.netconf.shaded.sshd.common.io.IoReadFuture>,org.opendaylight.netconf.shaded.sshd.common.util.SshdEventListener
public final class AsyncSshHandlerReader extends Object implements org.opendaylight.netconf.shaded.sshd.common.future.SshFutureListener<org.opendaylight.netconf.shaded.sshd.common.io.IoReadFuture>, AutoCloseable
Listener on async input stream from SSH session. This listeners schedules reads in a loop until the session is closed or read fails.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAsyncSshHandlerReader.ReadMsgHandler
-
Constructor Summary
Constructors Constructor Description AsyncSshHandlerReader(AutoCloseable connectionClosedCallback, AsyncSshHandlerReader.ReadMsgHandler readHandler, String channelId, org.opendaylight.netconf.shaded.sshd.common.io.IoInputStream asyncOut)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidoperationComplete(org.opendaylight.netconf.shaded.sshd.common.io.IoReadFuture future)
-
-
-
Constructor Detail
-
AsyncSshHandlerReader
public AsyncSshHandlerReader(AutoCloseable connectionClosedCallback, AsyncSshHandlerReader.ReadMsgHandler readHandler, String channelId, org.opendaylight.netconf.shaded.sshd.common.io.IoInputStream asyncOut)
-
-
Method Detail
-
operationComplete
public void operationComplete(org.opendaylight.netconf.shaded.sshd.common.io.IoReadFuture future)
- Specified by:
operationCompletein interfaceorg.opendaylight.netconf.shaded.sshd.common.future.SshFutureListener<org.opendaylight.netconf.shaded.sshd.common.io.IoReadFuture>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-