Top Fields Constructors Methods
io.netty.handler.codec.http2

pack-priv final Class HpackDynamicTable

extends Object
Class Inheritance
Static Imports
io.netty.handler.codec.http2.Http2CodecUtil.MAX_HEADER_TABLE_SIZE, .Http2CodecUtil.MIN_HEADER_TABLE_SIZE

Field Summary

Modifier and TypeField and Description
private long
pack-priv int
pack-priv HpackHeaderField[]
private long
pack-priv int

Constructor Summary

AccessConstructor and Description
pack-priv
HpackDynamicTable(long initialCapacity)

Creates a new dynamic table with the specified initial capacity.

Method Summary

Modifier and TypeMethod and Description
public void
add(HpackHeaderField header)

Add the header field to the dynamic table.

public long
capacity()

Return the maximum allowable size of the dynamic table.

public void
clear()

Remove all entries from the dynamic table.

public HpackHeaderField
getEntry(int index)

Return the header field at the given index.

public int
length()

Return the number of header fields in the dynamic table.

public HpackHeaderField
remove()

Remove and return the oldest header field from the dynamic table.

public void
setCapacity(long capacity)

Set the maximum size of the dynamic table.

public long
size()

Return the current size of the dynamic table.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

capacityback to summary
private long capacity
hpackHeaderFieldsback to summary
pack-priv HpackHeaderField[] hpackHeaderFields
sizeback to summary
private long size
tailback to summary
pack-priv int tail

Constructor Detail

HpackDynamicTableback to summary
pack-priv HpackDynamicTable(long initialCapacity)

Creates a new dynamic table with the specified initial capacity.

Method Detail

addback to summary
public void add(HpackHeaderField header)

Add the header field to the dynamic table. Entries are evicted from the dynamic table until the size of the table and the new header field is less than or equal to the table's capacity. If the size of the new entry is larger than the table's capacity, the dynamic table will be cleared.

capacityback to summary
public long capacity()

Return the maximum allowable size of the dynamic table.

clearback to summary
public void clear()

Remove all entries from the dynamic table.

getEntryback to summary
public HpackHeaderField getEntry(int index)

Return the header field at the given index. The first and newest entry is always at index 1, and the oldest entry is at the index length().

lengthback to summary
public int length()

Return the number of header fields in the dynamic table.

removeback to summary
public HpackHeaderField remove()

Remove and return the oldest header field from the dynamic table.

setCapacityback to summary
public void setCapacity(long capacity)

Set the maximum size of the dynamic table. Entries are evicted from the dynamic table until the size of the table is less than or equal to the maximum size.

sizeback to summary
public long size()

Return the current size of the dynamic table. This is the sum of the size of the entries.