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 custom WebClient.Builder required by the WebClientEurekaHttpClient. Relies on Jackson for serialization and deserialization.
Author:
Daniel Lavoie, Haytham Mohamed
  • Constructor Details

    • WebClientTransportClientFactory

      public WebClientTransportClientFactory(Supplier<org.springframework.web.reactive.function.client.WebClient.Builder> builderSupplier)
  • Method Details

    • newClient

      public com.netflix.discovery.shared.transport.EurekaHttpClient newClient(com.netflix.discovery.shared.resolver.EurekaEndpoint endpoint)
      Specified by:
      newClient in interface com.netflix.discovery.shared.transport.TransportClientFactory
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface com.netflix.discovery.shared.transport.TransportClientFactory