Package dev.relism.flash.http2.hpack
Class HpackDynamicTable
java.lang.Object
dev.relism.flash.http2.hpack.HpackDynamicTable
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(dev.relism.fpr.core.ByteView name, dev.relism.fpr.core.ByteView value) Inserts a new entry, copying its bytes before performing FIFO eviction.voidclear()intcount()voidget(int relativeIndex, PooledSlice name, PooledSlice value) Resolves a dynamic index where1is the newest entry.intvoidsetMaximumSize(int newMaximum) Applies an RFC 7541 §4.2 table-size update and evicts oldest entries as necessary.intsize()
-
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
Resolves a dynamic index where1is the newest entry. -
clear
public void clear()
-