Class Http3ClientConfig
java.lang.Object
io.vertx.core.http.Http3ClientConfig
HTTP/3 client configuration.
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintsetInitialSettings(Http3Settings settings) Set the HTTP/3 connection settings sent by the client.setKeepAliveTimeout(Duration keepAliveTimeout) Set the keep alive timeout for HTTP/3 connections.setMultiplexingLimit(int limit) Set a client limit of the number concurrent streams for each HTTP/3 connection, this limits the number of streams the client can create for a connection.
-
Constructor Details
-
Http3ClientConfig
public Http3ClientConfig() -
Http3ClientConfig
-
-
Method Details
-
getMultiplexingLimit
public int getMultiplexingLimit()- Returns:
- the maximum number of concurrent streams for an HTTP/3 connection,
-1means the value sent by the server
-
setMultiplexingLimit
Set a client limit of the number concurrent streams for each HTTP/3 connection, this limits the number of streams the client can create for a connection. The effective number of streams for a connection is the min of this value and the server's initial settings. Setting the value to-1means to use the value sent by the server's initial settings.-1is the default value.- Parameters:
limit- the maximum concurrent for an HTTP/3 connection- Returns:
- a reference to this, so the API can be used fluently
-
getKeepAliveTimeout
- Returns:
- the keep alive timeout value in seconds for HTTP/3 connections
-
setKeepAliveTimeout
Set the keep alive timeout for HTTP/3 connections. This value determines how long a connection remains unused in the pool before being evicted and closed. A timeout of zero or
nullmeans there is no timeout.- Parameters:
keepAliveTimeout- the timeout, in seconds- Returns:
- a reference to this, so the API can be used fluently
-
getInitialSettings
- Returns:
- the initial HTTP/3 connection settings sent by the client
-
setInitialSettings
Set the HTTP/3 connection settings sent by the client.- Parameters:
settings- the settings value- Returns:
- a reference to this, so the API can be used fluently
-