QuicStreamPriority Class — netty Architecture
Architecture documentation for the QuicStreamPriority class in QuicStreamPriority.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c9f0b708_81b7_d742_656d_60706307c62e["QuicStreamPriority"] 64a148a4_cfa4_5b48_e238_c9cd7ac48cbd["QuicStreamPriority.java"] c9f0b708_81b7_d742_656d_60706307c62e -->|defined in| 64a148a4_cfa4_5b48_e238_c9cd7ac48cbd 23c78e47_1694_f9b4_5477_b5b5980b9495["QuicStreamPriority()"] c9f0b708_81b7_d742_656d_60706307c62e -->|method| 23c78e47_1694_f9b4_5477_b5b5980b9495 6563e0ae_3afe_cc2c_3a23_a251aebc05ac["urgency()"] c9f0b708_81b7_d742_656d_60706307c62e -->|method| 6563e0ae_3afe_cc2c_3a23_a251aebc05ac 27b356cc_2216_8dae_dc7c_a9707f1cad29["isIncremental()"] c9f0b708_81b7_d742_656d_60706307c62e -->|method| 27b356cc_2216_8dae_dc7c_a9707f1cad29 bfa7de30_8024_693c_bcf9_ac2eb24e40bf["equals()"] c9f0b708_81b7_d742_656d_60706307c62e -->|method| bfa7de30_8024_693c_bcf9_ac2eb24e40bf f33198d3_d22b_bfb7_fd56_c85b87ff70ab["hashCode()"] c9f0b708_81b7_d742_656d_60706307c62e -->|method| f33198d3_d22b_bfb7_fd56_c85b87ff70ab 8d7c8300_8f66_172a_9517_16c4cfe368e8["String()"] c9f0b708_81b7_d742_656d_60706307c62e -->|method| 8d7c8300_8f66_172a_9517_16c4cfe368e8
Relationship Graph
Source Code
codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicStreamPriority.java lines 25–83
public final class QuicStreamPriority {
private final int urgency;
private final boolean incremental;
/**
* Create a new instance
*
* @param urgency the urgency of the stream.
* @param incremental {@code true} if incremental.
*/
public QuicStreamPriority(int urgency, boolean incremental) {
this.urgency = ObjectUtil.checkInRange(urgency, 0, Byte.MAX_VALUE, "urgency");
this.incremental = incremental;
}
/**
* The urgency of the stream. Smaller number means more urgent and so data will be send earlier.
*
* @return the urgency.
*/
public int urgency() {
return urgency;
}
/**
* {@code true} if incremental, {@code false} otherwise.
*
* @return if incremental.
*/
public boolean isIncremental() {
return incremental;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
QuicStreamPriority that = (QuicStreamPriority) o;
return urgency == that.urgency && incremental == that.incremental;
}
@Override
public int hashCode() {
return Objects.hash(urgency, incremental);
}
@Override
public String toString() {
return "QuicStreamPriority{" +
"urgency=" + urgency +
", incremental=" + incremental +
'}';
}
}
Source
Frequently Asked Questions
What is the QuicStreamPriority class?
QuicStreamPriority is a class in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicStreamPriority.java.
Where is QuicStreamPriority defined?
QuicStreamPriority is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicStreamPriority.java at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free