Class AsyncSshHandlerWriter
- java.lang.Object
-
- org.opendaylight.netconf.nettyutil.handler.ssh.client.AsyncSshHandlerWriter
-
- All Implemented Interfaces:
AutoCloseable
public final class AsyncSshHandlerWriter extends Object implements AutoCloseable
Async Ssh writer. Takes messages(byte arrays) and sends them encrypted to remote server. Also handles pending writes by caching requests until pending state is over.
-
-
Constructor Summary
Constructors Constructor Description AsyncSshHandlerWriter(org.opendaylight.netconf.shaded.sshd.common.io.IoOutputStream asyncIn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringbyteBufToString(io.netty.buffer.ByteBuf msg)voidclose()voidwrite(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise)
-
-
-
Method Detail
-
write
public void write(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise)
-
byteBufToString
public static String byteBufToString(io.netty.buffer.ByteBuf msg)
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-