Home / Function/ start() — netty Function Reference

start() — netty Function Reference

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

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/traffic/TrafficCounter.java lines 185–198

    public synchronized void start() {
        if (monitorActive) {
            return;
        }
        lastTime.set(milliSecondFromNano());
        long localCheckInterval = checkInterval.get();
        // if executor is null, it means it is piloted by a GlobalChannelTrafficCounter, so no executor
        if (localCheckInterval > 0 && executor != null) {
            monitorActive = true;
            monitor = new TrafficMonitoringTask();
            scheduledFuture =
                executor.scheduleAtFixedRate(monitor, 0, localCheckInterval, TimeUnit.MILLISECONDS);
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free