Home / Function/ String() — netty Function Reference

String() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  71df845b_485b_20c8_ca7c_100fdf9dd225["String()"]
  8bee3e2e_d827_0301_76b0_12fc08d40d2b["HashedWheelTimeout"]
  71df845b_485b_20c8_ca7c_100fdf9dd225 -->|defined in| 8bee3e2e_d827_0301_76b0_12fc08d40d2b
  5966b70d_fc04_1bcb_0af7_d7180add2531["isCancelled()"]
  71df845b_485b_20c8_ca7c_100fdf9dd225 -->|calls| 5966b70d_fc04_1bcb_0af7_d7180add2531
  style 71df845b_485b_20c8_ca7c_100fdf9dd225 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/HashedWheelTimer.java lines 725–752

        @Override
        public String toString() {
            final long currentTime = System.nanoTime();
            long remaining = deadline - currentTime + timer.startTime;

            StringBuilder buf = new StringBuilder(192)
               .append(simpleClassName(this))
               .append('(')
               .append("deadline: ");
            if (remaining > 0) {
                buf.append(remaining)
                   .append(" ns later");
            } else if (remaining < 0) {
                buf.append(-remaining)
                   .append(" ns ago");
            } else {
                buf.append("now");
            }

            if (isCancelled()) {
                buf.append(", cancelled");
            }

            return buf.append(", task: ")
                      .append(task())
                      .append(')')
                      .toString();
        }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free