Package io.netty.channel.uring
Class AbstractIoUringStreamChannel.ByteBufWritableByteChannel
java.lang.Object
io.netty.channel.uring.AbstractIoUringStreamChannel.ByteBufWritableByteChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,WritableByteChannel
- Enclosing class:
AbstractIoUringStreamChannel
private static final class AbstractIoUringStreamChannel.ByteBufWritableByteChannel
extends Object
implements WritableByteChannel
A
WritableByteChannel backed by a ByteBuf.
Writes are capped to ByteBuf.writableBytes() to prevent overflow
when FileRegion.transferTo(java.nio.channels.WritableByteChannel, long) writes more than the chunk size.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
buf
-
-
Constructor Details
-
ByteBufWritableByteChannel
ByteBufWritableByteChannel(ByteBuf buf)
-
-
Method Details
-
write
- Specified by:
writein interfaceWritableByteChannel
-
isOpen
public boolean isOpen() -
close
public void close()
-