public abstract class RegistrationConfiguration extends java.lang.Object implements Toggleable
ServiceInstance registration.| Modifier and Type | Field and Description | 
|---|---|
| static boolean | DEFAULT_DEREGISTERThe default deregister value. | 
| static boolean | DEFAULT_ENABLEDThe default enable value. | 
| static boolean | DEFAULT_FAILFASTThe default fail fast value. | 
| static int | DEFAULT_RETRY_COUNTThe default retry count value. | 
| static int | DEFAULT_RETRYDELAY_SECONDSThe default retry delay in seconds. | 
| static java.lang.String | PREFIXThe prefix to use for all client discovery registration settings. | 
| Constructor and Description | 
|---|
| RegistrationConfiguration() | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.Optional<java.lang.String> | getHealthPath() | 
| java.util.Optional<java.lang.String> | getIpAddr()The IP address to use to register. | 
| int | getRetryCount() | 
| java.time.Duration | getRetryDelay() | 
| java.util.Optional<java.time.Duration> | getTimeout() | 
| boolean | isDeregister() | 
| boolean | isEnabled() | 
| boolean | isFailFast() | 
| boolean | isPreferIpAddress()Should the IP address by used to register with the discovery server. | 
| void | setDeregister(boolean deregister)Default value (true). | 
| void | setEnabled(boolean enabled)Default value (true). | 
| void | setFailFast(boolean failFast)Default value (true). | 
| void | setHealthPath(java.lang.String healthPath) | 
| void | setIpAddr(java.lang.String ipAddr)The IP address to use to register. | 
| void | setPreferIpAddress(boolean preferIpAddress)Sets whether the IP address by used to register with the discovery server. | 
| void | setRetryCount(int retryCount)Default value (-1). | 
| void | setRetryDelay(java.time.Duration retryDelay)Default value (1 seconds). | 
| void | setTimeout(java.time.Duration timeout) | 
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public static final int DEFAULT_RETRY_COUNT
public static final int DEFAULT_RETRYDELAY_SECONDS
public static final boolean DEFAULT_DEREGISTER
public static final boolean DEFAULT_FAILFAST
public java.util.Optional<java.lang.String> getIpAddr()
public void setIpAddr(@Nullable java.lang.String ipAddr)
ipAddr - The ip addresspublic boolean isPreferIpAddress()
public void setPreferIpAddress(boolean preferIpAddress)
preferIpAddress - True if the IP address should be usedpublic java.util.Optional<java.time.Duration> getTimeout()
public void setTimeout(java.time.Duration timeout)
timeout - The timeout for registrationpublic boolean isFailFast()
public void setFailFast(boolean failFast)
failFast - Whether to fail server startup if registration failspublic boolean isDeregister()
public void setDeregister(boolean deregister)
deregister - Whether to deregister the service on shutdownpublic boolean isEnabled()
isEnabled in interface Toggleablepublic void setEnabled(boolean enabled)
enabled - Whether service registration is enabledpublic int getRetryCount()
public void setRetryCount(int retryCount)
retryCount - The retry countpublic java.time.Duration getRetryDelay()
public void setRetryDelay(java.time.Duration retryDelay)
retryDelay - The retry delaypublic java.util.Optional<java.lang.String> getHealthPath()
public void setHealthPath(java.lang.String healthPath)
healthPath - The health endpoint path