Home / Function/ HashedWheelTimeout() — netty Function Reference

HashedWheelTimeout() — netty Function Reference

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

Function java CommonUtil Logging calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  6c51ec0f_8f2d_9485_8cda_182a3bd31508["HashedWheelTimeout()"]
  fe86e935_6fee_92f9_eeb5_11302b3b45a5["HashedWheelBucket"]
  6c51ec0f_8f2d_9485_8cda_182a3bd31508 -->|defined in| fe86e935_6fee_92f9_eeb5_11302b3b45a5
  00653983_4442_5cb1_c3f9_bf5c5ba28319["HashedWheelTimeout()"]
  00653983_4442_5cb1_c3f9_bf5c5ba28319 -->|calls| 6c51ec0f_8f2d_9485_8cda_182a3bd31508
  c308ba74_e543_9d57_bba1_6d9433c57e5f["remove()"]
  6c51ec0f_8f2d_9485_8cda_182a3bd31508 -->|calls| c308ba74_e543_9d57_bba1_6d9433c57e5f
  style 6c51ec0f_8f2d_9485_8cda_182a3bd31508 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/HashedWheelTimer.java lines 804–827

        public HashedWheelTimeout remove(HashedWheelTimeout timeout) {
            HashedWheelTimeout prev = timeout.prev;
            HashedWheelTimeout next = timeout.next;

            // remove timeout that was either processed or cancelled by updating the linked-list
            if (prev != null) {
                prev.next = next;
            }
            if (next != null) {
                next.prev = prev;
            }

            if (timeout == head) {
                head = next;
            }
            if (timeout == tail) {
                tail = prev;
            }
            // null out prev, next and bucket to allow for GC.
            timeout.prev = null;
            timeout.next = null;
            timeout.bucket = null;
            return next;
        }

Domain

Subdomains

Calls

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free