Class WebClientTransportClientFactory
- java.lang.Object
-
- org.springframework.cloud.netflix.eureka.http.WebClientTransportClientFactory
-
- All Implemented Interfaces:
com.netflix.discovery.shared.transport.TransportClientFactory
public class WebClientTransportClientFactory extends Object implements com.netflix.discovery.shared.transport.TransportClientFactory
Provides the customWebClient.Builderrequired by theWebClientEurekaHttpClient. Relies on Jackson for serialization and deserialization.- Author:
- Daniel Lavoie, Haytham Mohamed
-
-
Constructor Summary
Constructors Constructor Description WebClientTransportClientFactory(Supplier<org.springframework.web.reactive.function.client.WebClient.Builder> builderSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.netflix.discovery.shared.transport.EurekaHttpClientnewClient(com.netflix.discovery.shared.resolver.EurekaEndpoint endpoint)voidshutdown()
-
-
-
Constructor Detail
-
WebClientTransportClientFactory
public WebClientTransportClientFactory(Supplier<org.springframework.web.reactive.function.client.WebClient.Builder> builderSupplier)
-
-
Method Detail
-
newClient
public com.netflix.discovery.shared.transport.EurekaHttpClient newClient(com.netflix.discovery.shared.resolver.EurekaEndpoint endpoint)
- Specified by:
newClientin interfacecom.netflix.discovery.shared.transport.TransportClientFactory
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfacecom.netflix.discovery.shared.transport.TransportClientFactory
-
-