Class HostnameBasedUrlRandomizer

java.lang.Object
org.springframework.cloud.netflix.eureka.config.HostnameBasedUrlRandomizer
All Implemented Interfaces:
com.netflix.discovery.endpoint.EndpointUtils.ServiceUrlRandomizer

public final class HostnameBasedUrlRandomizer extends Object implements com.netflix.discovery.endpoint.EndpointUtils.ServiceUrlRandomizer
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getEurekaUrl(com.netflix.discovery.EurekaClientConfig config, String hostname)
     
    static com.netflix.discovery.shared.resolver.DefaultEndpoint
    randomEndpoint(com.netflix.discovery.EurekaClientConfig config, org.springframework.boot.context.properties.bind.Binder binder)
     
    static com.netflix.discovery.shared.resolver.DefaultEndpoint
    randomEndpoint(com.netflix.discovery.EurekaClientConfig config, org.springframework.cloud.config.client.ConfigServerConfigDataLocationResolver.PropertyResolver propertyResolver)
     
    static com.netflix.discovery.shared.resolver.DefaultEndpoint
    randomEndpoint(com.netflix.discovery.EurekaClientConfig config, org.springframework.core.env.Environment env)
     
    void
    randomize(List<String> urlList)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • randomize

      public void randomize(List<String> urlList)
      Specified by:
      randomize in interface com.netflix.discovery.endpoint.EndpointUtils.ServiceUrlRandomizer
    • getEurekaUrl

      public static String getEurekaUrl(com.netflix.discovery.EurekaClientConfig config, String hostname)
    • randomEndpoint

      public static com.netflix.discovery.shared.resolver.DefaultEndpoint randomEndpoint(com.netflix.discovery.EurekaClientConfig config, org.springframework.core.env.Environment env)
    • randomEndpoint

      public static com.netflix.discovery.shared.resolver.DefaultEndpoint randomEndpoint(com.netflix.discovery.EurekaClientConfig config, org.springframework.boot.context.properties.bind.Binder binder)
    • randomEndpoint

      public static com.netflix.discovery.shared.resolver.DefaultEndpoint randomEndpoint(com.netflix.discovery.EurekaClientConfig config, org.springframework.cloud.config.client.ConfigServerConfigDataLocationResolver.PropertyResolver propertyResolver)