Class StreamPriority
java.lang.Object
io.vertx.core.http.StreamPriority
This class represents HTTP/2 stream priority defined in RFC 7540 clause 5.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final booleanstatic final short -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintshortinthashCode()booleansetDependency(int dependency) Set the priority dependency value.setExclusive(boolean exclusive) Set the priority exclusive value.setWeight(short weight) Set the priority weight.toJson()toString()
-
Field Details
-
DEFAULT_DEPENDENCY
public static final int DEFAULT_DEPENDENCY- See Also:
-
DEFAULT_WEIGHT
public static final short DEFAULT_WEIGHT- See Also:
-
DEFAULT_EXCLUSIVE
public static final boolean DEFAULT_EXCLUSIVE- See Also:
-
-
Constructor Details
-
StreamPriority
public StreamPriority() -
StreamPriority
-
StreamPriority
-
-
Method Details
-
getWeight
public short getWeight()- Returns:
- An integer value between
1and256representing a priority weight for the stream.
-
setWeight
Set the priority weight.- Parameters:
weight- the new value- Returns:
- a reference to this, so the API can be used fluently
-
getDependency
public int getDependency()- Returns:
- A stream identifier for the stream that this stream depends on.
-
setDependency
Set the priority dependency value.- Parameters:
dependency- the new value- Returns:
- a reference to this, so the API can be used fluently
-
isExclusive
public boolean isExclusive()- Returns:
- A flag indicating that the stream dependency is exclusive.
-
setExclusive
Set the priority exclusive value.- Parameters:
exclusive- the new value- Returns:
- a reference to this, so the API can be used fluently
-
hashCode
-
equals
-
toJson
-
toString
-