Class StreamPriority


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

      • StreamPriority

        public StreamPriority()
      • StreamPriority

        public StreamPriority​(JsonObject json)
    • Method Detail

      • 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