add() — netty Function Reference
Architecture documentation for the add() function in PoolThreadCache.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f0dd6d53_8cde_9782_233c_ebff914c0232["add()"] a4d6715f_8e89_41fa_05cc_d305ad068060["MemoryRegionCache"] f0dd6d53_8cde_9782_233c_ebff914c0232 -->|defined in| a4d6715f_8e89_41fa_05cc_d305ad068060 5ba074e2_e7b8_74b3_3d57_4dac0324b0f2["add()"] 5ba074e2_e7b8_74b3_3d57_4dac0324b0f2 -->|calls| f0dd6d53_8cde_9782_233c_ebff914c0232 889d822a_52d8_de93_dcf2_0a4944151cf9["createNormalCaches()"] 889d822a_52d8_de93_dcf2_0a4944151cf9 -->|calls| f0dd6d53_8cde_9782_233c_ebff914c0232 5ba074e2_e7b8_74b3_3d57_4dac0324b0f2["add()"] f0dd6d53_8cde_9782_233c_ebff914c0232 -->|calls| 5ba074e2_e7b8_74b3_3d57_4dac0324b0f2 a6dd1dbd_733b_f461_5724_6438bb2d5399["unguardedRecycle()"] f0dd6d53_8cde_9782_233c_ebff914c0232 -->|calls| a6dd1dbd_733b_f461_5724_6438bb2d5399 style f0dd6d53_8cde_9782_233c_ebff914c0232 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PoolThreadCache.java lines 349–359
@SuppressWarnings("unchecked")
public final boolean add(PoolChunk<T> chunk, ByteBuffer nioBuffer, long handle, int normCapacity) {
Entry<T> entry = newEntry(chunk, nioBuffer, handle, normCapacity);
boolean queued = queue.offer(entry);
if (!queued) {
// If it was not possible to cache the chunk, immediately recycle the entry
entry.unguardedRecycle();
}
return queued;
}
Domain
Subdomains
Calls
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 349.
What does add() call?
add() calls 2 function(s): add, unguardedRecycle.
What calls add()?
add() is called by 2 function(s): add, createNormalCaches.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free