final class HpackDynamicTable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
capacity |
(package private) int |
head |
(package private) HpackHeaderField[] |
hpackHeaderFields |
private long |
size |
(package private) int |
tail |
Constructor and Description |
---|
HpackDynamicTable(long initialCapacity)
Creates a new dynamic table with the specified initial capacity.
|
Modifier and Type | Method and Description |
---|---|
void |
add(HpackHeaderField header)
Add the header field to the dynamic table.
|
long |
capacity()
Return the maximum allowable size of the dynamic table.
|
void |
clear()
Remove all entries from the dynamic table.
|
HpackHeaderField |
getEntry(int index)
Return the header field at the given index.
|
int |
length()
Return the number of header fields in the dynamic table.
|
HpackHeaderField |
remove()
Remove and return the oldest header field from the dynamic table.
|
void |
setCapacity(long capacity)
Set the maximum size of the dynamic table.
|
long |
size()
Return the current size of the dynamic table.
|
HpackHeaderField[] hpackHeaderFields
int head
int tail
private long size
private long capacity
HpackDynamicTable(long initialCapacity)
public int length()
public long size()
public long capacity()
public HpackHeaderField getEntry(int index)
public void add(HpackHeaderField header)
public HpackHeaderField remove()
public void clear()
public void setCapacity(long capacity)