Interface Http2Setting<T>

Type Parameters:
T - type of the setting

public interface Http2Setting<T>
HTTP/2 setting.
  • Field Details

    • HEADER_TABLE_SIZE

      static final Http2Setting<Long> HEADER_TABLE_SIZE
      Setting for header table size.
    • ENABLE_PUSH

      static final Http2Setting<Boolean> ENABLE_PUSH
      Setting to enable or disable push.
    • MAX_CONCURRENT_STREAMS

      static final Http2Setting<Long> MAX_CONCURRENT_STREAMS
      Setting to define maximal number of open streams.
    • INITIAL_WINDOW_SIZE

      static final Http2Setting<Long> INITIAL_WINDOW_SIZE
      Setting to define initial window size.
    • MAX_FRAME_SIZE

      static final Http2Setting<Long> MAX_FRAME_SIZE
      Setting to define maximal frame size.
    • MAX_HEADER_LIST_SIZE

      static final Http2Setting<Long> MAX_HEADER_LIST_SIZE
      Setting to define maximal header list size.
    • BY_ID

      static final Map<Integer,Http2Setting<?>> BY_ID
      Settings mapped by setting identifier.
  • Method Details

    • identifier

      int identifier()
      Setting identifier.
      Returns:
      identifier
    • defaultValue

      T defaultValue()
      Typed default value of this setting.
      Returns:
      default value
    • read

      T read(BufferData frame)
      Read setting value from the frame buffer.
      Parameters:
      frame - frame buffer
      Returns:
      value of setting
    • write

      void write(BufferData data, T value)
      Write setting to the provided buffer.
      Parameters:
      data - buffer to write setting to
      value - value to write