@Requires(env="ec2") @Requires(property="aws.route53.discovery.enabled",value="true",defaultValue="false") @ConfigurationProperties(value="aws.route53.discovery.client") public class Route53ClientDiscoveryConfiguration extends DiscoveryClientConfiguration
HttpClientConfiguration.ConnectionPoolConfiguration| Modifier and Type | Field and Description |
|---|---|
static String |
PREFIX |
static String |
SERVICE_ID |
DEFAULT_FOLLOW_REDIRECTS, DEFAULT_MAX_CONTENT_LENGTH, DEFAULT_READ_IDLE_TIMEOUT_MINUTES, DEFAULT_READ_TIMEOUT_SECONDS, DEFAULT_SHUTDOWN_TIMEOUT_MILLISECONDS| Constructor and Description |
|---|
Route53ClientDiscoveryConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAwsServiceId()
service id registered to aws.
|
HttpClientConfiguration.ConnectionPoolConfiguration |
getConnectionPoolConfiguration()
Obtains the connection pool configuration.
|
DiscoveryConfiguration |
getDiscovery()
Gets the discovery configuration.
|
String |
getNamespaceId()
This is the name space ID for the domain/subdomain in route 53 service registry.
|
RegistrationConfiguration |
getRegistration()
Get the registration configuration needed to register to service registry.
|
protected String |
getServiceID()
service ID where you are going to be adding service instances to.
|
void |
setAwsServiceId(String awsServiceId)
set service id for easier testing.
|
void |
setNamespaceId(String namespaceId)
allows you to override the namespace id for testing.
|
getAllZones, getContextPath, getDefaultZone, getHost, getPort, getServiceId, isSecure, isShouldUseDns, setContextPath, setDefaultZone, setHost, setPort, setSecure, setShouldUseDns, setZones, toStringgetChannelOptions, 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 static final String SERVICE_ID
public static final String PREFIX
public String getNamespaceId()
public void setNamespaceId(String namespaceId)
namespaceId - name space id used for easy of testingprotected String getServiceID()
getServiceID in class DiscoveryClientConfiguration@Nonnull public DiscoveryConfiguration getDiscovery()
getDiscovery in class DiscoveryClientConfiguration@Nullable public RegistrationConfiguration getRegistration()
getRegistration in class DiscoveryClientConfigurationpublic String getAwsServiceId()
public void setAwsServiceId(String awsServiceId)
awsServiceId - service idpublic HttpClientConfiguration.ConnectionPoolConfiguration getConnectionPoolConfiguration()
HttpClientConfigurationgetConnectionPoolConfiguration in class HttpClientConfiguration