Home / Function/ createWheel() — netty Function Reference

createWheel() — netty Function Reference

Architecture documentation for the createWheel() function in HashedWheelTimer.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  49014abb_5553_8fe8_42ba_8b8198dcc344["createWheel()"]
  0a75019c_ba28_3729_1e96_e0724c6ddc24["HashedWheelTimer"]
  49014abb_5553_8fe8_42ba_8b8198dcc344 -->|defined in| 0a75019c_ba28_3729_1e96_e0724c6ddc24
  fa8fd23b_8f91_6574_968e_772c307cdc19["HashedWheelTimer()"]
  fa8fd23b_8f91_6574_968e_772c307cdc19 -->|calls| 49014abb_5553_8fe8_42ba_8b8198dcc344
  style 49014abb_5553_8fe8_42ba_8b8198dcc344 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/HashedWheelTimer.java lines 335–343

    private static HashedWheelBucket[] createWheel(int ticksPerWheel) {
        ticksPerWheel = MathUtil.findNextPositivePowerOfTwo(ticksPerWheel);

        HashedWheelBucket[] wheel = new HashedWheelBucket[ticksPerWheel];
        for (int i = 0; i < wheel.length; i ++) {
            wheel[i] = new HashedWheelBucket();
        }
        return wheel;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does createWheel() do?
createWheel() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/HashedWheelTimer.java.
Where is createWheel() defined?
createWheel() is defined in common/src/main/java/io/netty/util/HashedWheelTimer.java at line 335.
What calls createWheel()?
createWheel() is called by 1 function(s): HashedWheelTimer.

Analyze Your Own Codebase

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

Try Supermodel Free