Class DefaultEurekaClientHttpRequestFactorySupplier

java.lang.Object
org.springframework.cloud.netflix.eureka.http.DefaultEurekaClientHttpRequestFactorySupplier
All Implemented Interfaces:
EurekaClientHttpRequestFactorySupplier

public class DefaultEurekaClientHttpRequestFactorySupplier extends Object implements EurekaClientHttpRequestFactorySupplier
Supplier for the ClientHttpRequestFactory to be used by Eureka client that uses HttpClients.

This supplier is intentionally stateless: each call to get(javax.net.ssl.SSLContext, javax.net.ssl.HostnameVerifier) builds a fresh CloseableHttpClient. Caching and lifecycle management of the shared client is the responsibility of the owning TransportClientFactory (RestClientTransportClientFactory), which is already created once per Eureka client and is the natural owner of that client's lifecycle.

Since:
3.0.0
Author:
Marcin Grzejszczak, Olga Maciaszek-Sharma, Jiwon Jeon