Home / Function/ testExpireWithTTL0() — netty Function Reference

testExpireWithTTL0() — netty Function Reference

Architecture documentation for the testExpireWithTTL0() function in DefaultDnsCnameCacheTest.java from the netty codebase.

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

graph TD
  cc59445e_c61c_0dca_09dd_5b956d5a63b8["testExpireWithTTL0()"]
  16ad9679_0159_d6d4_e25b_e5cafe1bc921["DefaultDnsCnameCacheTest"]
  cc59445e_c61c_0dca_09dd_5b956d5a63b8 -->|defined in| 16ad9679_0159_d6d4_e25b_e5cafe1bc921
  1f4567a6_b070_95aa_c00e_d940846c436d["testExpireWithDifferentTTLs()"]
  1f4567a6_b070_95aa_c00e_d940846c436d -->|calls| cc59445e_c61c_0dca_09dd_5b956d5a63b8
  style cc59445e_c61c_0dca_09dd_5b956d5a63b8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

resolver-dns/src/test/java/io/netty/resolver/dns/DefaultDnsCnameCacheTest.java lines 69–80

    private static void testExpireWithTTL0(int days) {
        EventLoopGroup group = new MultiThreadIoEventLoopGroup(1, LocalIoHandler.newFactory());

        try {
            EventLoop loop = group.next();
            final DefaultDnsCnameCache cache = new DefaultDnsCnameCache();
            cache.cache("netty.io", "mapping.netty.io", TimeUnit.DAYS.toSeconds(days), loop);
            assertEquals("mapping.netty.io", cache.get("netty.io"));
        } finally {
            group.shutdownGracefully();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testExpireWithTTL0() do?
testExpireWithTTL0() is a function in the netty codebase, defined in resolver-dns/src/test/java/io/netty/resolver/dns/DefaultDnsCnameCacheTest.java.
Where is testExpireWithTTL0() defined?
testExpireWithTTL0() is defined in resolver-dns/src/test/java/io/netty/resolver/dns/DefaultDnsCnameCacheTest.java at line 69.
What calls testExpireWithTTL0()?
testExpireWithTTL0() is called by 1 function(s): testExpireWithDifferentTTLs.

Analyze Your Own Codebase

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

Try Supermodel Free