Java Binding Specification · Bindings Policy
Java Netty Extension Specification¶
This document defines the public contract for the Java Netty ByteBuf
extension. The adapter is separate from the core binding so Netty-specific
entrypoints do not become part of systems.zlink, and applications
opt in to the Netty dependency explicitly.
Artifact And Package¶
- Maven
zlink-ext-netty systems.zlink.netty
Ownership Rules¶
from(ByteBuf)copies the readable bytes betweenreaderIndexandwriterIndex.from(ByteBuf)must not changereaderIndexorwriterIndex.- The extension must not call
retain()orrelease()on caller-ownedByteBuf. copyTo(Message, ByteBuf)copies the full message at the currentwriterIndex.copyTo(Message, ByteBuf)may advancewriterIndexby the copied byte count, but must not changereaderIndex.copyTo(Message, ByteBuf)must not callretain()orrelease().