add() — netty Function Reference
Architecture documentation for the add() function in PoolThreadCache.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5ba074e2_e7b8_74b3_3d57_4dac0324b0f2["add()"] f4c407ea_9e8c_d00d_ea7e_e355c94f8aba["PoolThreadCache"] 5ba074e2_e7b8_74b3_3d57_4dac0324b0f2 -->|defined in| f4c407ea_9e8c_d00d_ea7e_e355c94f8aba f0dd6d53_8cde_9782_233c_ebff914c0232["add()"] f0dd6d53_8cde_9782_233c_ebff914c0232 -->|calls| 5ba074e2_e7b8_74b3_3d57_4dac0324b0f2 f0dd6d53_8cde_9782_233c_ebff914c0232["add()"] 5ba074e2_e7b8_74b3_3d57_4dac0324b0f2 -->|calls| f0dd6d53_8cde_9782_233c_ebff914c0232 0cb1e698_5776_a20e_cb9d_1f9bc7c12e07["cache()"] 5ba074e2_e7b8_74b3_3d57_4dac0324b0f2 -->|calls| 0cb1e698_5776_a20e_cb9d_1f9bc7c12e07 style 5ba074e2_e7b8_74b3_3d57_4dac0324b0f2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PoolThreadCache.java lines 175–187
@SuppressWarnings({ "unchecked", "rawtypes" })
boolean add(PoolArena<?> area, PoolChunk chunk, ByteBuffer nioBuffer,
long handle, int normCapacity, SizeClass sizeClass) {
int sizeIdx = area.sizeClass.size2SizeIdx(normCapacity);
MemoryRegionCache<?> cache = cache(area, sizeIdx, sizeClass);
if (cache == null) {
return false;
}
if (freed.get()) {
return false;
}
return cache.add(chunk, nioBuffer, handle, normCapacity);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does add() do?
add() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PoolThreadCache.java.
Where is add() defined?
add() is defined in buffer/src/main/java/io/netty/buffer/PoolThreadCache.java at line 175.
What does add() call?
add() calls 2 function(s): add, cache.
What calls add()?
add() is called by 1 function(s): add.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free