add() — netty Function Reference
Architecture documentation for the add() function in DnsQueryContextManager.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9e5b6f88_f286_0009_fe3a_0ff0c5ca4a51["add()"] 908d556c_deb2_5fc9_15cb_6377ddbd1469["DnsQueryContextMap"] 9e5b6f88_f286_0009_fe3a_0ff0c5ca4a51 -->|defined in| 908d556c_deb2_5fc9_15cb_6377ddbd1469 298d5f6c_7a77_a8b8_05a0_617c07a1e10a["add()"] 298d5f6c_7a77_a8b8_05a0_617c07a1e10a -->|calls| 9e5b6f88_f286_0009_fe3a_0ff0c5ca4a51 298d5f6c_7a77_a8b8_05a0_617c07a1e10a["add()"] 9e5b6f88_f286_0009_fe3a_0ff0c5ca4a51 -->|calls| 298d5f6c_7a77_a8b8_05a0_617c07a1e10a style 9e5b6f88_f286_0009_fe3a_0ff0c5ca4a51 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
resolver-dns/src/main/java/io/netty/resolver/dns/DnsQueryContextManager.java lines 165–175
synchronized int add(DnsQueryContext ctx) {
int id = idSpace.nextId();
if (id == -1) {
// -1 means that we couldn't reserve an id to use. In this case return early and not store the
// context in the map.
return -1;
}
DnsQueryContext oldCtx = map.put(id, ctx);
assert oldCtx == null;
return id;
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does add() do?
add() is a function in the netty codebase, defined in resolver-dns/src/main/java/io/netty/resolver/dns/DnsQueryContextManager.java.
Where is add() defined?
add() is defined in resolver-dns/src/main/java/io/netty/resolver/dns/DnsQueryContextManager.java at line 165.
What does add() call?
add() calls 1 function(s): add.
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