Class StreamPriority

java.lang.Object
io.vertx.core.http.StreamPriority

public class StreamPriority extends Object
This class represents HTTP/2 stream priority defined in RFC 7540 clause 5.3
  • Field Details

  • Constructor Details

    • StreamPriority

      public StreamPriority()
    • StreamPriority

      public StreamPriority(JsonObject json)
    • StreamPriority

      public StreamPriority(StreamPriority other)
  • Method Details

    • getWeight

      public short getWeight()
      Returns:
      An integer value between 1 and 256 representing a priority weight for the stream.
    • setWeight

      public StreamPriority setWeight(short weight)
      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

      public StreamPriority setDependency(int dependency)
      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

      public StreamPriority setExclusive(boolean exclusive)
      Set the priority exclusive value.
      Parameters:
      exclusive - the new value
      Returns:
      a reference to this, so the API can be used fluently
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toJson

      public JsonObject toJson()
    • toString

      public String toString()
      Overrides:
      toString in class Object