Class EurekaConfig
- java.lang.Object
-
- org.kiwiproject.registry.eureka.config.EurekaConfig
-
- Direct Known Subclasses:
EurekaRegistrationConfig
public class EurekaConfig extends Object
Base configuration class for Eureka registry client configuration.
-
-
Constructor Summary
Constructors Constructor Description EurekaConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotBlank StringgetRegistryUrls()static StringretryId(Object identifier)Generates aretryIdby appending the String value ofidentifierto "EurekaRegistryClient-".voidsetRegistryUrls(String urlCsv)Set the comma-separate list of Eureka server URLs.voidsetRegistryUrls(List<String> urls)Convenience method to set Eureka server URLS from a list of URLs rather than a CSV string.voidsetRetryId(String id)Sets the retry ID to"EurekaRegistryClient-" + id.
-
-
-
Method Detail
-
getRegistryUrls
@NotBlank public @NotBlank String getRegistryUrls()
- Returns:
- comma separated list of urls pointing to Eureka servers, with domains replaced if
domainOverrideis 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 aretryIdby appending the String value ofidentifierto "EurekaRegistryClient-".- Parameters:
identifier- the unique identifier to use- Returns:
- a new retry identifier
- Implementation Note:
- if
identifieras a String starts with "EurekaRegistryClient-", that value returned as-is
-
-