public abstract class DiscoveryClientConfiguration extends HttpClientConfiguration
DiscoveryClient configurations.HttpClientConfiguration.ConnectionPoolConfigurationDEFAULT_FOLLOW_REDIRECTS, DEFAULT_MAX_CONTENT_LENGTH, DEFAULT_READ_IDLE_TIMEOUT_MINUTES, DEFAULT_READ_TIMEOUT_SECONDS, DEFAULT_SHUTDOWN_TIMEOUT_MILLISECONDS| Constructor and Description | 
|---|
| DiscoveryClientConfiguration()Default constructor. | 
| DiscoveryClientConfiguration(ApplicationConfiguration applicationConfiguration) | 
| Modifier and Type | Method and Description | 
|---|---|
| List<ServiceInstance> | getAllZones() | 
| Optional<String> | getContextPath() | 
| List<ServiceInstance> | getDefaultZone() | 
| abstract DiscoveryConfiguration | getDiscovery() | 
| String | getHost() | 
| int | getPort() | 
| abstract RegistrationConfiguration | getRegistration() | 
| Optional<String> | getServiceId() | 
| protected abstract String | getServiceID() | 
| boolean | isSecure() | 
| boolean | isShouldUseDns()Whether DNS should be used to resolve the discovery servers. | 
| void | setContextPath(String contextPath)Sets the context path. | 
| void | setDefaultZone(List<URL> defaultZone)Sets the Discovery servers to use for the default zone. | 
| void | setHost(String host) | 
| void | setPort(int port) | 
| void | setSecure(boolean secure) | 
| void | setShouldUseDns(boolean shouldUseDns)Whether DNS should be used to resolve the discovery servers. | 
| void | setZones(Map<String,List<URL>> zones)Configures Discovery servers in other zones. | 
| String | toString() | 
getChannelOptions, getConnectionPoolConfiguration, getConnectTimeout, getConnectTtl, getDefaultCharset, getLoggerName, getMaxContentLength, getNumOfThreads, getProxyAddress, getProxyPassword, getProxySelector, getProxyType, getProxyUsername, getReadIdleTimeout, getReadTimeout, getShutdownTimeout, getSslConfiguration, getThreadFactory, isFollowRedirects, resolveProxy, setChannelOptions, setConnectTimeout, setConnectTtl, setDefaultCharset, setFollowRedirects, setLoggerName, setMaxContentLength, setNumOfThreads, setProxyAddress, setProxyPassword, setProxySelector, setProxyType, setProxyUsername, setReadIdleTimeout, setReadTimeout, setShutdownTimeout, setSslConfiguration, setThreadFactorypublic DiscoveryClientConfiguration()
public DiscoveryClientConfiguration(ApplicationConfiguration applicationConfiguration)
applicationConfiguration - The application configuration.public boolean isShouldUseDns()
public void setShouldUseDns(boolean shouldUseDns)
shouldUseDns - True if DNS should be used.public void setContextPath(String contextPath)
contextPath - The context pathpublic List<ServiceInstance> getDefaultZone()
public void setDefaultZone(List<URL> defaultZone)
defaultZone - The default zonepublic List<ServiceInstance> getAllZones()
public void setZones(Map<String,List<URL>> zones)
zones - The zonespublic boolean isSecure()
public void setSecure(boolean secure)
secure - Set if the discovery server is exposed over HTTPS@Nonnull public String getHost()
public void setHost(String host)
host - The Discovery server host namepublic int getPort()
public void setPort(int port)
port - The port for the Discovery server@Nonnull public abstract DiscoveryConfiguration getDiscovery()
@Nullable public abstract RegistrationConfiguration getRegistration()
protected abstract String getServiceID()
DiscoveryClient