public class WritableByteChannelAdapter extends Object implements WritableByteChannel
WritableByteChannel
and ChannelHandlerContext.
Additionally provides a form of flow-control by limiting the number of
queued async writes.| Constructor and Description |
|---|
WritableByteChannelAdapter(io.netty.channel.ChannelHandlerContext chc,
int maxPendingWrites,
String id) |
public WritableByteChannelAdapter(io.netty.channel.ChannelHandlerContext chc,
int maxPendingWrites,
String id)
public int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.