Class HpackDynamicTable

java.lang.Object
dev.relism.flash.http2.hpack.HpackDynamicTable

public final class HpackDynamicTable extends Object
Per-connection HPACK dynamic table. Entries are kept in FIFO order in a descriptor ring while their bytes live in one bounded arena. The arena is compacted only when its free tail cannot hold the next entry, keeping every returned view contiguous.
  • Constructor Summary

    Constructors
    Constructor
    Description
    HpackDynamicTable(int advertisedMaximum)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(dev.relism.fpr.core.ByteView name, dev.relism.fpr.core.ByteView value)
    Inserts a new entry, copying its bytes before performing FIFO eviction.
    void
     
    int
     
    void
    get(int relativeIndex, PooledSlice name, PooledSlice value)
    Resolves a dynamic index where 1 is the newest entry.
    int
     
    void
    setMaximumSize(int newMaximum)
    Applies an RFC 7541 §4.2 table-size update and evicts oldest entries as necessary.
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HpackDynamicTable

      public HpackDynamicTable(int advertisedMaximum)
  • Method Details

    • count

      public int count()
    • size

      public int size()
    • maximumSize

      public int maximumSize()
    • setMaximumSize

      public void setMaximumSize(int newMaximum)
      Applies an RFC 7541 §4.2 table-size update and evicts oldest entries as necessary.
    • add

      public void add(dev.relism.fpr.core.ByteView name, dev.relism.fpr.core.ByteView value)
      Inserts a new entry, copying its bytes before performing FIFO eviction.
    • get

      public void get(int relativeIndex, PooledSlice name, PooledSlice value)
      Resolves a dynamic index where 1 is the newest entry.
    • clear

      public void clear()