AbstractBufferEvent Class — netty Architecture
Architecture documentation for the AbstractBufferEvent class in AbstractBufferEvent.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d8799dbf_bb37_0b83_31db_1d46b949f434["AbstractBufferEvent"] 0d5f6bd1_8c50_80e6_ad14_fb52f17f4558["AbstractBufferEvent.java"] d8799dbf_bb37_0b83_31db_1d46b949f434 -->|defined in| 0d5f6bd1_8c50_80e6_ad14_fb52f17f4558 15497547_5dff_831f_c165_34a9fefaabf6["fill()"] d8799dbf_bb37_0b83_31db_1d46b949f434 -->|method| 15497547_5dff_831f_c165_34a9fefaabf6
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/AbstractBufferEvent.java lines 22–47
@SuppressWarnings("Since15")
abstract class AbstractBufferEvent extends AbstractAllocatorEvent {
@DataAmount
@Description("Configured buffer capacity")
public int size;
@DataAmount
@Description("Actual allocated buffer capacity")
public int maxFastCapacity;
@DataAmount
@Description("Maximum buffer capacity")
public int maxCapacity;
@Description("Is this buffer referencing off-heap memory?")
public boolean direct;
@Description("The memory address of the off-heap memory, if available")
@MemoryAddress
public long address;
public void fill(AbstractByteBuf buf, Class<? extends AbstractByteBufAllocator> allocatorType) {
this.allocatorType = allocatorType;
size = buf.capacity();
maxFastCapacity = buf.maxFastWritableBytes() + buf.writerIndex();
maxCapacity = buf.maxCapacity();
direct = buf.isDirect();
address = buf._memoryAddress();
}
}
Source
Frequently Asked Questions
What is the AbstractBufferEvent class?
AbstractBufferEvent is a class in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/AbstractBufferEvent.java.
Where is AbstractBufferEvent defined?
AbstractBufferEvent is defined in buffer/src/main/java/io/netty/buffer/AbstractBufferEvent.java at line 22.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free