Top Description Fields Constructors Methods
org.eclipse.jetty.http3

public Class HTTP3Configuration

extends Object
Class Inheritance
Annotations
@ManagedObject
Imports
org.eclipse.jetty.util.annotation.ManagedAttribute, .ManagedObject

The HTTP/3 configuration parameters.

Field Summary

Modifier and TypeField and Description
private int
private int
private int
private int
private int
private int
private int
private long
private boolean
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
public int
public int
public int
public int
public int
public int
public long
public boolean
public boolean
public void
setInputBufferSize(int
the buffer size in bytes
inputBufferSize
)

Sets the size of the buffer used for QUIC network reads.

public void
setMaxBlockedStreams(int
the QPACK decoder max blocked streams
maxBlockedStreams
)

Sets the local QPACK decoder max number of blocked streams.

public void
setMaxDecoderTableCapacity(int
the QPACK decoder dynamic table max capacity
maxTableCapacity
)

Sets the local QPACK decoder max dynamic table capacity.

public void
setMaxEncoderTableCapacity(int
the QPACK encoder dynamic table initial capacity
maxTableCapacity
)

Sets the local QPACK encoder initial dynamic table capacity.

public void
setMaxRequestHeadersSize(int
the max request headers size in bytes
maxRequestHeadersSize
)

Sets max request headers size.

public void
setMaxResponseHeadersSize(int
the max response headers size
maxResponseHeadersSize
)

Sets max response headers size.

public void
setOutputBufferSize(int
the buffer size in bytes
outputBufferSize
)

Sets the size of the buffer used for QUIC network writes.

public void
setStreamIdleTimeout(long
the stream idle timeout in milliseconds
streamIdleTimeout
)

Sets the stream idle timeout in milliseconds.

public void
setUseInputDirectByteBuffers(boolean
whether to use direct buffers for network reads
useInputDirectByteBuffers
)

Sets whether to use direct buffers for QUIC network reads.

public void
setUseOutputDirectByteBuffers(boolean
whether to use direct buffers for network writes
useOutputDirectByteBuffers
)

Sets whether to use direct buffers for QUIC network writes.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

inputBufferSizeback to summary
private int inputBufferSize
maxBlockedStreamsback to summary
private int maxBlockedStreams
maxDecoderTableCapacityback to summary
private int maxDecoderTableCapacity
maxEncoderTableCapacityback to summary
private int maxEncoderTableCapacity
maxRequestHeadersSizeback to summary
private int maxRequestHeadersSize
maxResponseHeadersSizeback to summary
private int maxResponseHeadersSize
outputBufferSizeback to summary
private int outputBufferSize
streamIdleTimeoutback to summary
private long streamIdleTimeout
useInputDirectByteBuffersback to summary
private boolean useInputDirectByteBuffers
useOutputDirectByteBuffersback to summary
private boolean useOutputDirectByteBuffers

Constructor Detail

HTTP3Configurationback to summary
public HTTP3Configuration()

Method Detail

getInputBufferSizeback to summary
public int getInputBufferSize()
Annotations
@ManagedAttribute:The size of the network input buffer
getMaxBlockedStreamsback to summary
public int getMaxBlockedStreams()
Annotations
@ManagedAttribute:The max number of QPACK blocked streams
getMaxDecoderTableCapacityback to summary
public int getMaxDecoderTableCapacity()
Annotations
@ManagedAttribute:The local QPACK max decoder dynamic table capacity
getMaxEncoderTableCapacityback to summary
public int getMaxEncoderTableCapacity()
Annotations
@ManagedAttribute:The local QPACK initial encoder dynamic table capacity
getMaxRequestHeadersSizeback to summary
public int getMaxRequestHeadersSize()
Annotations
@ManagedAttribute:The max size of the request headers
getMaxResponseHeadersSizeback to summary
public int getMaxResponseHeadersSize()
Annotations
@ManagedAttribute:The max size of the response headers
getOutputBufferSizeback to summary
public int getOutputBufferSize()
Annotations
@ManagedAttribute:The size of the network output buffer
getStreamIdleTimeoutback to summary
public long getStreamIdleTimeout()
Annotations
@ManagedAttribute:The stream idle timeout in milliseconds
isUseInputDirectByteBuffersback to summary
public boolean isUseInputDirectByteBuffers()
Annotations
@ManagedAttribute:Whether to use direct buffers for network reads
isUseOutputDirectByteBuffersback to summary
public boolean isUseOutputDirectByteBuffers()
Annotations
@ManagedAttribute:Whether to use direct buffers for network writes
setInputBufferSizeback to summary
public void setInputBufferSize(int inputBufferSize)

Sets the size of the buffer used for QUIC network reads.

Default value is 2048 bytes.

Parameters
inputBufferSize:int

the buffer size in bytes

setMaxBlockedStreamsback to summary
public void setMaxBlockedStreams(int maxBlockedStreams)

Sets the local QPACK decoder max number of blocked streams.

The default value is 64.

This value is configured in the local QPACK decoder, and then communicated to the remote QPACK encoder via the SETTINGS frame.

Parameters
maxBlockedStreams:int

the QPACK decoder max blocked streams

setMaxDecoderTableCapacityback to summary
public void setMaxDecoderTableCapacity(int maxTableCapacity)

Sets the local QPACK decoder max dynamic table capacity.

The default value is 65536 bytes.

This value is configured on the local QPACK decoder, and then communicated to the remote QPACK encoder via the SETTINGS frame.

Parameters
maxTableCapacity:int

the QPACK decoder dynamic table max capacity

See Also
setMaxEncoderTableCapacity(int)
setMaxEncoderTableCapacityback to summary
public void setMaxEncoderTableCapacity(int maxTableCapacity)

Sets the local QPACK encoder initial dynamic table capacity.

The default value is 65536 bytes.

This value is configured in the local QPACK encoder, and may be overwritten by a smaller value received via the SETTINGS frame.

Parameters
maxTableCapacity:int

the QPACK encoder dynamic table initial capacity

See Also
setMaxDecoderTableCapacity(int)
setMaxRequestHeadersSizeback to summary
public void setMaxRequestHeadersSize(int maxRequestHeadersSize)

Sets max request headers size.

The default value is 8192 bytes.

This value is configured in the server-side QPACK decoder, and then communicated to the client-side QPACK encoder via the SETTINGS frame.

The client-side QPACK encoder uses this value to cap, if necessary, the value sent by the server-side QPACK decoder.

Parameters
maxRequestHeadersSize:int

the max request headers size in bytes

setMaxResponseHeadersSizeback to summary
public void setMaxResponseHeadersSize(int maxResponseHeadersSize)

Sets max response headers size.

The default value is 8192 bytes.

This value is configured in the client-side QPACK decoder, and then communicated to the server-side QPACK encoder via the SETTINGS frame.

The server-side QPACK encoder uses this value to cap, if necessary, the value sent by the client-side QPACK decoder.

Parameters
maxResponseHeadersSize:int

the max response headers size

setOutputBufferSizeback to summary
public void setOutputBufferSize(int outputBufferSize)

Sets the size of the buffer used for QUIC network writes.

Default value is 2048 bytes.

Parameters
outputBufferSize:int

the buffer size in bytes

setStreamIdleTimeoutback to summary
public void setStreamIdleTimeout(long streamIdleTimeout)

Sets the stream idle timeout in milliseconds.

Negative values and zero mean that the stream never times out.

Default value is 30 seconds.

Parameters
streamIdleTimeout:long

the stream idle timeout in milliseconds

setUseInputDirectByteBuffersback to summary
public void setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers)

Sets whether to use direct buffers for QUIC network reads.

Default value is true.

Parameters
useInputDirectByteBuffers:boolean

whether to use direct buffers for network reads

setUseOutputDirectByteBuffersback to summary
public void setUseOutputDirectByteBuffers(boolean useOutputDirectByteBuffers)

Sets whether to use direct buffers for QUIC network writes.

Default value is true.

Parameters
useOutputDirectByteBuffers:boolean

whether to use direct buffers for network writes