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) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
void |
setAllocator(org.apache.arrow.memory.BufferAllocator allocator) |
int |
write(ByteBuffer src) |
public WritableByteChannelAdapter(io.netty.channel.ChannelHandlerContext chc,
int maxPendingWrites,
String id)
public void setAllocator(org.apache.arrow.memory.BufferAllocator allocator)
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 © 2024 The Apache Software Foundation. All rights reserved.