Class Http3ClientConfig

java.lang.Object
io.vertx.core.http.Http3ClientConfig

@Unstable public class Http3ClientConfig extends Object
HTTP/3 client configuration.
Author:
Julien Viet
  • Constructor Details

    • Http3ClientConfig

      public Http3ClientConfig()
    • Http3ClientConfig

      public Http3ClientConfig(Http3ClientConfig config)
  • Method Details

    • getMultiplexingLimit

      public int getMultiplexingLimit()
      Returns:
      the maximum number of concurrent streams for an HTTP/3 connection, -1 means the value sent by the server
    • setMultiplexingLimit

      public Http3ClientConfig 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. The effective number of streams for a connection is the min of this value and the server's initial settings.

      Setting the value to -1 means to use the value sent by the server's initial settings. -1 is 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

      public Duration getKeepAliveTimeout()
      Returns:
      the keep alive timeout value in seconds for HTTP/3 connections
    • setKeepAliveTimeout

      public Http3ClientConfig setKeepAliveTimeout(Duration keepAliveTimeout)

      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 null means there is no timeout.

      Parameters:
      keepAliveTimeout - the timeout, in seconds
      Returns:
      a reference to this, so the API can be used fluently
    • getInitialSettings

      public Http3Settings getInitialSettings()
      Returns:
      the initial HTTP/3 connection settings sent by the client
    • setInitialSettings

      public Http3ClientConfig setInitialSettings(Http3Settings settings)
      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