StreamComparator Class — netty Architecture
Architecture documentation for the StreamComparator class in SpdySession.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD aa01612f_c7e1_25db_3b11_9fb5294d3c31["StreamComparator"] 957efa9e_42dd_908d_9fe3_af64cf28b05f["SpdySession.java"] aa01612f_c7e1_25db_3b11_9fb5294d3c31 -->|defined in| 957efa9e_42dd_908d_9fe3_af64cf28b05f e5a8e746_2ca3_9f43_7fc3_36de7f260cdc["StreamComparator()"] aa01612f_c7e1_25db_3b11_9fb5294d3c31 -->|method| e5a8e746_2ca3_9f43_7fc3_36de7f260cdc 38b1a1dc_d75e_1e38_b090_dbef1bdd2fef["compare()"] aa01612f_c7e1_25db_3b11_9fb5294d3c31 -->|method| 38b1a1dc_d75e_1e38_b090_dbef1bdd2fef
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/spdy/SpdySession.java lines 325–341
private final class StreamComparator implements Comparator<Integer> {
StreamComparator() { }
@Override
public int compare(Integer id1, Integer id2) {
StreamState state1 = activeStreams.get(id1);
StreamState state2 = activeStreams.get(id2);
int result = state1.getPriority() - state2.getPriority();
if (result != 0) {
return result;
}
return id1 - id2;
}
}
Source
Frequently Asked Questions
What is the StreamComparator class?
StreamComparator is a class in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdySession.java.
Where is StreamComparator defined?
StreamComparator is defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdySession.java at line 325.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free