Class QuicEndpointConfig
- Direct Known Subclasses:
QuicClientConfig, QuicServerConfig
- Author:
- Julien Viet
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default maximum value of pending stream requests.static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintbooleansetIdleTimeout(Duration idleTimeout) Set the stream idle timeout, zero ornullmeans don't time out.setKeyLogFile(String keyLogFile) Configures the endpoint to dump the cryptographic secrets using in TLS in theSSLKEYLOGFILEformat.setLogConfig(LogConfig config) Configure the log config: Netty's stream pipeline is configured for logging on Netty's logger.setMaxStreamBidiRequests(int maxStreamRequests) Set the maximum number of bidi stream requests per connection that can be queued when the connection stream bidi limit is reached.setMaxStreamUniRequests(int maxStreamRequests) Set the maximum number of unit stream requests per connection that can be queued when the connection stream uni limit is reached.setMetricsName(String metricsName) Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name.setQLogConfig(QLogConfig qLogConfig) Set the endpoint QLog config.setReadIdleTimeout(Duration idleTimeout) Set the stream read idle timeout, zero ornullmeans or null means don't time out.setReuseAddress(boolean reuseAddress) Set the value of reuse address, used to bind the UDP socket underpinning the QUIC transport.setTransportConfig(QuicConfig transportConfig) setWriteIdleTimeout(Duration idleTimeout) Set the stream write idle timeout, zero ornullmeans don't time out.Methods inherited from class EndpointConfig
getIdleTimeout, getLogConfig, getMetricsName, getReadIdleTimeout, getWriteIdleTimeout
-
Field Details
-
DEFAULT_MAX_STREAM_BIDI_REQUESTS
public static final int DEFAULT_MAX_STREAM_BIDI_REQUESTSThe default maximum value of pending stream requests.- See Also:
-
DEFAULT_MAX_STREAM_UNI_REQUESTS
public static final int DEFAULT_MAX_STREAM_UNI_REQUESTS- See Also:
-
-
Constructor Details
-
QuicEndpointConfig
-
QuicEndpointConfig
-
-
Method Details
-
setTransportConfig
-
getTransportConfig
- Specified by:
getTransportConfigin classEndpointConfig- Returns:
- the endpoint transport config
-
getQLogConfig
- Returns:
- the endpoint QLog config.
-
setQLogConfig
Set the endpoint QLog config.
The config can point to a single file or to a directory where qlog files will be created.
- Parameters:
qLogConfig- the qlog config- Returns:
- this exact object instance
-
getKeyLogFile
- Returns:
- the path of the configured key log file or
null(default).
-
setKeyLogFile
Configures the endpoint to dump the cryptographic secrets using in TLS in the
SSLKEYLOGFILEformat.The file might exist or will be created (in which case the parent file must exist), content will be appended to the file.
This should be used only for debugging purpose and must not be used in production. This feature is disabled by default.
- Parameters:
keyLogFile- the path to the key log file- Returns:
- this exact object instance
-
setIdleTimeout
Description copied from class:EndpointConfigSet the stream idle timeout, zero ornullmeans don't time out. This determines if a stream will timeout and be closed if no data is received nor sent within the timeout.- Overrides:
setIdleTimeoutin classEndpointConfig- Parameters:
idleTimeout- the idle timeout- Returns:
- a reference to this, so the API can be used fluently
-
setReadIdleTimeout
Description copied from class:EndpointConfigSet the stream read idle timeout, zero or
nullmeans or null means don't time out. This determines if a stream will timeout and be closed if no data is received within the timeout.- Overrides:
setReadIdleTimeoutin classEndpointConfig- Parameters:
idleTimeout- the read idle timeout- Returns:
- a reference to this, so the API can be used fluently
-
setWriteIdleTimeout
Description copied from class:EndpointConfigSet the stream write idle timeout, zero or
nullmeans don't time out. This determines if a stream will timeout and be closed if no data is sent within the timeout.- Overrides:
setWriteIdleTimeoutin classEndpointConfig- Parameters:
idleTimeout- the write idle timeout- Returns:
- a reference to this, so the API can be used fluently
-
setMetricsName
Description copied from class:EndpointConfigSet the metrics name identifying the reported metrics, useful for grouping metrics with the same name.- Overrides:
setMetricsNamein classEndpointConfig- Parameters:
metricsName- the metrics name- Returns:
- a reference to this, so the API can be used fluently
-
setLogConfig
Description copied from class:EndpointConfigConfigure the log config: Netty's stream pipeline is configured for logging on Netty's logger.- Overrides:
setLogConfigin classEndpointConfig- Parameters:
config- the log config- Returns:
- a reference to this, so the API can be used fluently
-
getMaxStreamBidiRequests
public int getMaxStreamBidiRequests()- Returns:
- the number of maximum bidi stream requests awaiting in the queue of a connection
-
setMaxStreamBidiRequests
Set the maximum number of bidi stream requests per connection that can be queued when the connection stream bidi limit is reached.- Parameters:
maxStreamRequests- the maximum value
-
getMaxStreamUniRequests
public int getMaxStreamUniRequests()- Returns:
- the number of maximum uni stream requests awaiting in the queue of a connection
-
setMaxStreamUniRequests
Set the maximum number of unit stream requests per connection that can be queued when the connection stream uni limit is reached.- Parameters:
maxStreamRequests- the maximum value
-
isReuseAddress
public boolean isReuseAddress()- Returns:
- the value of reuse address
-
setReuseAddress
Set the value of reuse address, used to bind the UDP socket underpinning the QUIC transport.- Parameters:
reuseAddress- the value of reuse address- Returns:
- a reference to this, so the API can be used fluently
-