Home / Function/ addTimeout() — netty Function Reference

addTimeout() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  78938a23_b7a7_64b9_dae3_04a0c9ec0b4b["addTimeout()"]
  fe86e935_6fee_92f9_eeb5_11302b3b45a5["HashedWheelBucket"]
  78938a23_b7a7_64b9_dae3_04a0c9ec0b4b -->|defined in| fe86e935_6fee_92f9_eeb5_11302b3b45a5
  1a7f3952_1dcf_b390_f3fc_948e608ef456["transferTimeoutsToBuckets()"]
  1a7f3952_1dcf_b390_f3fc_948e608ef456 -->|calls| 78938a23_b7a7_64b9_dae3_04a0c9ec0b4b
  style 78938a23_b7a7_64b9_dae3_04a0c9ec0b4b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/HashedWheelTimer.java lines 768–778

        public void addTimeout(HashedWheelTimeout timeout) {
            assert timeout.bucket == null;
            timeout.bucket = this;
            if (head == null) {
                head = tail = timeout;
            } else {
                tail.next = timeout;
                timeout.prev = tail;
                tail = timeout;
            }
        }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free