checkWaitReadTime() — netty Function Reference
Architecture documentation for the checkWaitReadTime() function in GlobalTrafficShapingHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD cf61ed13_75a4_605d_739d_8ab42e03ee38["checkWaitReadTime()"] 25ae99c4_4bb1_9893_ce25_fa54995d6af1["GlobalTrafficShapingHandler"] cf61ed13_75a4_605d_739d_8ab42e03ee38 -->|defined in| 25ae99c4_4bb1_9893_ce25_fa54995d6af1 style cf61ed13_75a4_605d_739d_8ab42e03ee38 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/traffic/GlobalTrafficShapingHandler.java lines 295–305
@Override
long checkWaitReadTime(final ChannelHandlerContext ctx, long wait, final long now) {
Integer key = ctx.channel().hashCode();
PerChannel perChannel = channelQueues.get(key);
if (perChannel != null) {
if (wait > maxTime && now + wait - perChannel.lastReadTimestamp > maxTime) {
wait = maxTime;
}
}
return wait;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does checkWaitReadTime() do?
checkWaitReadTime() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/traffic/GlobalTrafficShapingHandler.java.
Where is checkWaitReadTime() defined?
checkWaitReadTime() is defined in handler/src/main/java/io/netty/handler/traffic/GlobalTrafficShapingHandler.java at line 295.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free