Home / Function/ start() — netty Function Reference

start() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  616b7daf_1b94_5de0_6cde_f9cf0e81360d["start()"]
  2a051faf_25b0_e46d_ad69_5f887649cee4["GlobalChannelTrafficCounter"]
  616b7daf_1b94_5de0_6cde_f9cf0e81360d -->|defined in| 2a051faf_25b0_e46d_ad69_5f887649cee4
  b574a828_7496_47d1_0e50_653f0ee08ff7["MixedTrafficMonitoringTask()"]
  616b7daf_1b94_5de0_6cde_f9cf0e81360d -->|calls| b574a828_7496_47d1_0e50_653f0ee08ff7
  style 616b7daf_1b94_5de0_6cde_f9cf0e81360d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/traffic/GlobalChannelTrafficCounter.java lines 87–100

    @Override
    public synchronized void start() {
        if (monitorActive) {
            return;
        }
        lastTime.set(milliSecondFromNano());
        long localCheckInterval = checkInterval.get();
        if (localCheckInterval > 0) {
            monitorActive = true;
            monitor = new MixedTrafficMonitoringTask((GlobalChannelTrafficShapingHandler) trafficShapingHandler, this);
            scheduledFuture =
                executor.scheduleAtFixedRate(monitor, 0, localCheckInterval, TimeUnit.MILLISECONDS);
        }
    }

Domain

Subdomains

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/GlobalChannelTrafficCounter.java.
Where is start() defined?
start() is defined in handler/src/main/java/io/netty/handler/traffic/GlobalChannelTrafficCounter.java at line 87.
What does start() call?
start() calls 1 function(s): MixedTrafficMonitoringTask.

Analyze Your Own Codebase

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

Try Supermodel Free