Home / Function/ configure() — netty Function Reference

configure() — netty Function Reference

Architecture documentation for the configure() function in TrafficCounter.java from the netty codebase.

Function java Buffer Allocators calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  5248e4b7_37c1_bd3a_13dd_c41b35aadaa3["configure()"]
  0606a665_efe6_a36d_b40e_7c957ec61157["TrafficCounter"]
  5248e4b7_37c1_bd3a_13dd_c41b35aadaa3 -->|defined in| 0606a665_efe6_a36d_b40e_7c957ec61157
  1d050615_bf97_6cfa_8d1d_7dcfe4bf80b9["init()"]
  1d050615_bf97_6cfa_8d1d_7dcfe4bf80b9 -->|calls| 5248e4b7_37c1_bd3a_13dd_c41b35aadaa3
  5e4871b7_eba5_c41b_7640_6d372497627c["stop()"]
  5248e4b7_37c1_bd3a_13dd_c41b35aadaa3 -->|calls| 5e4871b7_eba5_c41b_7640_6d372497627c
  3a7ac9a4_071b_42d6_770c_79e68b9cb0a0["milliSecondFromNano()"]
  5248e4b7_37c1_bd3a_13dd_c41b35aadaa3 -->|calls| 3a7ac9a4_071b_42d6_770c_79e68b9cb0a0
  299bb567_42e6_09f5_d6b1_0af3db332d4c["start()"]
  5248e4b7_37c1_bd3a_13dd_c41b35aadaa3 -->|calls| 299bb567_42e6_09f5_d6b1_0af3db332d4c
  style 5248e4b7_37c1_bd3a_13dd_c41b35aadaa3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/traffic/TrafficCounter.java lines 302–315

    public void configure(long newCheckInterval) {
        long newInterval = newCheckInterval / 10 * 10;
        if (checkInterval.getAndSet(newInterval) != newInterval) {
            if (newInterval <= 0) {
                stop();
                // No more active monitoring
                lastTime.set(milliSecondFromNano());
            } else {
                // Restart
                stop();
                start();
            }
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does configure() do?
configure() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/traffic/TrafficCounter.java.
Where is configure() defined?
configure() is defined in handler/src/main/java/io/netty/handler/traffic/TrafficCounter.java at line 302.
What does configure() call?
configure() calls 3 function(s): milliSecondFromNano, start, stop.
What calls configure()?
configure() is called by 1 function(s): init.

Analyze Your Own Codebase

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

Try Supermodel Free