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 WritableByteChannel
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
IOException
Copyright © 2022 The Apache Software Foundation. All rights reserved.