TestStreamByteDistributorStreamState Class — netty Architecture
Architecture documentation for the TestStreamByteDistributorStreamState class in Http2TestUtil.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f338799a_b8d3_0782_fa43_f44b656248ad["TestStreamByteDistributorStreamState"] 945883ee_c685_faa4_5503_879b96c1a6d1["Http2TestUtil.java"] f338799a_b8d3_0782_fa43_f44b656248ad -->|defined in| 945883ee_c685_faa4_5503_879b96c1a6d1 30c5743e_55e8_14f4_9d35_625e2c3420bb["TestStreamByteDistributorStreamState()"] f338799a_b8d3_0782_fa43_f44b656248ad -->|method| 30c5743e_55e8_14f4_9d35_625e2c3420bb d14bd483_20ae_7b46_05ab_a509c157b64b["Http2Stream()"] f338799a_b8d3_0782_fa43_f44b656248ad -->|method| d14bd483_20ae_7b46_05ab_a509c157b64b 3a457e46_1bc4_6c46_3af2_a3680288522f["pendingBytes()"] f338799a_b8d3_0782_fa43_f44b656248ad -->|method| 3a457e46_1bc4_6c46_3af2_a3680288522f e208c3b5_97ff_dc28_26a4_b84158c87615["hasFrame()"] f338799a_b8d3_0782_fa43_f44b656248ad -->|method| e208c3b5_97ff_dc28_26a4_b84158c87615 5c54e4a4_3444_0767_6859_1e198c83b29b["windowSize()"] f338799a_b8d3_0782_fa43_f44b656248ad -->|method| 5c54e4a4_3444_0767_6859_1e198c83b29b
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2TestUtil.java lines 325–358
static final class TestStreamByteDistributorStreamState implements StreamByteDistributor.StreamState {
private final Http2Stream stream;
boolean isWriteAllowed;
long pendingBytes;
boolean hasFrame;
TestStreamByteDistributorStreamState(Http2Stream stream, long pendingBytes, boolean hasFrame,
boolean isWriteAllowed) {
this.stream = stream;
this.isWriteAllowed = isWriteAllowed;
this.pendingBytes = pendingBytes;
this.hasFrame = hasFrame;
}
@Override
public Http2Stream stream() {
return stream;
}
@Override
public long pendingBytes() {
return pendingBytes;
}
@Override
public boolean hasFrame() {
return hasFrame;
}
@Override
public int windowSize() {
return isWriteAllowed ? (int) min(pendingBytes, Integer.MAX_VALUE) : -1;
}
}
Source
Frequently Asked Questions
What is the TestStreamByteDistributorStreamState class?
TestStreamByteDistributorStreamState is a class in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2TestUtil.java.
Where is TestStreamByteDistributorStreamState defined?
TestStreamByteDistributorStreamState is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2TestUtil.java at line 325.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free