Home / Function/ clear() — netty Function Reference

clear() — netty Function Reference

Architecture documentation for the clear() function in Cache.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  e3c71cae_ddf3_b42e_3a80_e3a9e5ed8673["clear()"]
  843d703e_e49f_c265_d13f_8db336d5ec36["Cache"]
  e3c71cae_ddf3_b42e_3a80_e3a9e5ed8673 -->|defined in| 843d703e_e49f_c265_d13f_8db336d5ec36
  49907d70_83f6_65fd_265c_73a9a8cba80a["clearAndCancel()"]
  e3c71cae_ddf3_b42e_3a80_e3a9e5ed8673 -->|calls| 49907d70_83f6_65fd_265c_73a9a8cba80a
  style e3c71cae_ddf3_b42e_3a80_e3a9e5ed8673 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

resolver-dns/src/main/java/io/netty/resolver/dns/Cache.java lines 94–103

    final void clear() {
        while (!resolveCache.isEmpty()) {
            for (Iterator<Entry<String, Entries>> i = resolveCache.entrySet().iterator(); i.hasNext();) {
                Map.Entry<String, Entries> e = i.next();
                i.remove();

                e.getValue().clearAndCancel();
            }
        }
    }

Subdomains

Frequently Asked Questions

What does clear() do?
clear() is a function in the netty codebase, defined in resolver-dns/src/main/java/io/netty/resolver/dns/Cache.java.
Where is clear() defined?
clear() is defined in resolver-dns/src/main/java/io/netty/resolver/dns/Cache.java at line 94.
What does clear() call?
clear() calls 1 function(s): clearAndCancel.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free