Class EurekaConfig

  • Direct Known Subclasses:
    EurekaRegistrationConfig

    public class EurekaConfig
    extends Object
    Base configuration class for Eureka registry client configuration.
    • Constructor Detail

      • EurekaConfig

        public EurekaConfig()
    • Method Detail

      • getRegistryUrls

        @NotBlank
        public @NotBlank String getRegistryUrls()
        Returns:
        comma separated list of urls pointing to Eureka servers, with domains replaced if domainOverride is set
      • setRegistryUrls

        public void setRegistryUrls​(String urlCsv)
        Set the comma-separate list of Eureka server URLs.
        Parameters:
        urlCsv - a string containing the CSV string containing Eureka server URLs
      • setRegistryUrls

        public void setRegistryUrls​(List<String> urls)
        Convenience method to set Eureka server URLS from a list of URLs rather than a CSV string.
        Parameters:
        urls - the list of URLs to set
      • setRetryId

        public void setRetryId​(String id)
        Sets the retry ID to "EurekaRegistryClient-" + id.
        Parameters:
        id - a unique identifier
        See Also:
        retryId(Object)
      • retryId

        public static String retryId​(Object identifier)
        Generates a retryId by appending the String value of identifier to "EurekaRegistryClient-".
        Parameters:
        identifier - the unique identifier to use
        Returns:
        a new retry identifier
        Implementation Note:
        if identifier as a String starts with "EurekaRegistryClient-", that value returned as-is