Class VertxHttpClientFactory

    • Constructor Detail

      • VertxHttpClientFactory

        public VertxHttpClientFactory()
      • VertxHttpClientFactory

        public VertxHttpClientFactory​(io.vertx.core.Vertx sharedVertx)
        Create a new instance of the factory that will reuse the provided Vertx instance.

        It's the user's responsibility to manage the lifecycle of the provided Vert.x instance. Operations such as close, and so on are left on hands of the user.

        Parameters:
        sharedVertx - the Vertx instance to use.
    • Method Detail

      • additionalConfig

        protected void additionalConfig​(io.vertx.ext.web.client.WebClientOptions options)
        Additional configuration to be applied to the options after the Config has been processed.
      • getTlsWarmup

        public TlsWarmup getTlsWarmup()
        Returns the configured TlsWarmup mode (never null).
        Returns:
        the TLS warm-up mode applied when building TLS-enabled clients
      • setTlsWarmup

        public void setTlsWarmup​(TlsWarmup tlsWarmup)
        Configures how the TLS stack is warmed up off the Vert.x event loop when a TLS-enabled client is built. See TlsWarmup for the trade-offs of each mode.
        Parameters:
        tlsWarmup - the warm-up mode; null resets it to the default TlsWarmup.CONTEXT