channelHandlerContext() — netty Function Reference
Architecture documentation for the channelHandlerContext() function in DefaultHttp2RemoteFlowController.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ba7fb81e_9d0a_6793_66e0_9c7e8889da1a["channelHandlerContext()"] 415966d7_2c19_58a9_659f_282cc732e73c["DefaultHttp2RemoteFlowController"] ba7fb81e_9d0a_6793_66e0_9c7e8889da1a -->|defined in| 415966d7_2c19_58a9_659f_282cc732e73c 0622aa0e_fd9b_0017_797b_b4ab239097f0["ChannelHandlerContext()"] 0622aa0e_fd9b_0017_797b_b4ab239097f0 -->|calls| ba7fb81e_9d0a_6793_66e0_9c7e8889da1a 837bf35b_6f8a_e7b9_1a64_6f945891016d["channelWritabilityChanged()"] ba7fb81e_9d0a_6793_66e0_9c7e8889da1a -->|calls| 837bf35b_6f8a_e7b9_1a64_6f945891016d 83a67fd1_f569_c827_44d6_d6628e2fb4fc["isChannelWritable()"] ba7fb81e_9d0a_6793_66e0_9c7e8889da1a -->|calls| 83a67fd1_f569_c827_44d6_d6628e2fb4fc a2c60377_22f9_834d_ce35_78ca17897689["writePendingBytes()"] ba7fb81e_9d0a_6793_66e0_9c7e8889da1a -->|calls| a2c60377_22f9_834d_ce35_78ca17897689 style ba7fb81e_9d0a_6793_66e0_9c7e8889da1a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowController.java lines 131–146
@Override
public void channelHandlerContext(ChannelHandlerContext ctx) throws Http2Exception {
this.ctx = checkNotNull(ctx, "ctx");
// Writing the pending bytes will not check writability change and instead a writability change notification
// to be provided by an explicit call.
channelWritabilityChanged();
// Don't worry about cleaning up queued frames here if ctx is null. It is expected that all streams will be
// closed and the queue cleanup will occur when the stream state transitions occur.
// If any frames have been queued up, we should send them now that we have a channel context.
if (isChannelWritable()) {
writePendingBytes();
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does channelHandlerContext() do?
channelHandlerContext() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowController.java.
Where is channelHandlerContext() defined?
channelHandlerContext() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowController.java at line 131.
What does channelHandlerContext() call?
channelHandlerContext() calls 3 function(s): channelWritabilityChanged, isChannelWritable, writePendingBytes.
What calls channelHandlerContext()?
channelHandlerContext() is called by 1 function(s): ChannelHandlerContext.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free