Class VertxHttpClientFactory
- java.lang.Object
-
- io.fabric8.kubernetes.client.vertx.VertxHttpClientFactory
-
- All Implemented Interfaces:
HttpClient.Factory
public class VertxHttpClientFactory extends Object implements HttpClient.Factory
-
-
Constructor Summary
Constructors Constructor Description VertxHttpClientFactory()VertxHttpClientFactory(io.vertx.core.Vertx sharedVertx)Create a new instance of the factory that will reuse the providedVertxinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadditionalConfig(io.vertx.ext.web.client.WebClientOptions options)Additional configuration to be applied to the options after theConfighas been processed.TlsWarmupgetTlsWarmup()Returns the configuredTlsWarmupmode (nevernull).VertxHttpClientBuilder<VertxHttpClientFactory>newBuilder()intpriority()voidsetTlsWarmup(TlsWarmup tlsWarmup)Configures how the TLS stack is warmed up off the Vert.x event loop when a TLS-enabled client is built.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.client.http.HttpClient.Factory
newBuilder
-
-
-
-
Constructor Detail
-
VertxHttpClientFactory
public VertxHttpClientFactory()
-
VertxHttpClientFactory
public VertxHttpClientFactory(io.vertx.core.Vertx sharedVertx)
Create a new instance of the factory that will reuse the providedVertxinstance.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
-
priority
public int priority()
- Specified by:
priorityin interfaceHttpClient.Factory
-
newBuilder
public VertxHttpClientBuilder<VertxHttpClientFactory> newBuilder()
- Specified by:
newBuilderin interfaceHttpClient.Factory
-
additionalConfig
protected void additionalConfig(io.vertx.ext.web.client.WebClientOptions options)
Additional configuration to be applied to the options after theConfighas been processed.
-
getTlsWarmup
public TlsWarmup getTlsWarmup()
Returns the configuredTlsWarmupmode (nevernull).- 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. SeeTlsWarmupfor the trade-offs of each mode.- Parameters:
tlsWarmup- the warm-up mode;nullresets it to the defaultTlsWarmup.CONTEXT
-
-