deadlineNanos() — netty Function Reference
Architecture documentation for the deadlineNanos() function in ManualIoEventLoop.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d5fe8552_21be_76db_be8c_06f4a94dc962["deadlineNanos()"] 495e052d_514b_eec5_cd6e_30fd871a39f6["BlockingIoHandlerContext"] d5fe8552_21be_76db_be8c_06f4a94dc962 -->|defined in| 495e052d_514b_eec5_cd6e_30fd871a39f6 cb229a6f_1187_05e7_0073_c0b824cf6ff7["inEventLoop()"] d5fe8552_21be_76db_be8c_06f4a94dc962 -->|calls| cb229a6f_1187_05e7_0073_c0b824cf6ff7 style d5fe8552_21be_76db_be8c_06f4a94dc962 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/ManualIoEventLoop.java lines 665–679
@Override
public long deadlineNanos() {
assert inEventLoop();
long next = nextScheduledTaskDeadlineNanos();
if (maxBlockingNanos == Long.MAX_VALUE) {
// next == -1? -1 : next i.e. return next
return next;
}
long now = ticker.nanoTime();
// we cannot just check Math.min as nanoTime can be negative or wrap around!
if (next == -1 || next - now > maxBlockingNanos) {
return now + maxBlockingNanos;
}
return next;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does deadlineNanos() do?
deadlineNanos() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/ManualIoEventLoop.java.
Where is deadlineNanos() defined?
deadlineNanos() is defined in transport/src/main/java/io/netty/channel/ManualIoEventLoop.java at line 665.
What does deadlineNanos() call?
deadlineNanos() calls 1 function(s): inEventLoop.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free