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 String
getRegistryUrls()
static String
retryId(Object identifier)
Generates aretryId
by appending the String value ofidentifier
to "EurekaRegistryClient-".void
setRegistryUrls(String urlCsv)
Set the comma-separate list of Eureka server URLs.void
setRegistryUrls(List<String> urls)
Convenience method to set Eureka server URLS from a list of URLs rather than a CSV string.void
setRetryId(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
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 aretryId
by appending the String value ofidentifier
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
-
-