@Requires(env="ec2") @Requires(property="aws.route53.discovery.enabled",value="true",defaultValue="false")
@ConfigurationProperties(value="aws.route53.discovery.client")
public class Route53ClientDiscoveryConfiguration
extends io.micronaut.discovery.client.DiscoveryClientConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX |
static java.lang.String |
SERVICE_ID |
Constructor and Description |
---|
Route53ClientDiscoveryConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAwsServiceId()
service id registered to aws.
|
io.micronaut.http.client.HttpClientConfiguration.ConnectionPoolConfiguration |
getConnectionPoolConfiguration() |
io.micronaut.discovery.DiscoveryConfiguration |
getDiscovery()
Gets the discovery configuration.
|
java.lang.String |
getNamespaceId()
This is the name space ID for the domain/subdomain in route 53 service registry.
|
io.micronaut.discovery.registration.RegistrationConfiguration |
getRegistration()
Get the registration configuration needed to register to service registry.
|
protected java.lang.String |
getServiceID()
service ID where you are going to be adding service instances to.
|
void |
setAwsServiceId(java.lang.String awsServiceId)
set service id for easier testing.
|
void |
setNamespaceId(java.lang.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, toString
getChannelOptions, getConnectTimeout, getConnectTtl, getDefaultCharset, getEventLoopGroup, getHttpVersion, getLoggerName, getLogLevel, getMaxContentLength, getNumOfThreads, getProxyAddress, getProxyPassword, getProxySelector, getProxyType, getProxyUsername, getReadIdleTimeout, getReadTimeout, getShutdownTimeout, getSslConfiguration, getThreadFactory, isExceptionOnErrorStatus, isFollowRedirects, resolveProxy, setChannelOptions, setConnectTimeout, setConnectTtl, setDefaultCharset, setEventLoopGroup, setExceptionOnErrorStatus, setFollowRedirects, setHttpVersion, setLoggerName, setLogLevel, setMaxContentLength, setNumOfThreads, setProxyAddress, setProxyPassword, setProxySelector, setProxyType, setProxyUsername, setReadIdleTimeout, setReadTimeout, setShutdownTimeout, setSslConfiguration, setThreadFactory
public static final java.lang.String SERVICE_ID
public static final java.lang.String PREFIX
public java.lang.String getNamespaceId()
public void setNamespaceId(java.lang.String namespaceId)
namespaceId
- name space id used for easy of testingprotected java.lang.String getServiceID()
getServiceID
in class io.micronaut.discovery.client.DiscoveryClientConfiguration
@NonNull public io.micronaut.discovery.DiscoveryConfiguration getDiscovery()
getDiscovery
in class io.micronaut.discovery.client.DiscoveryClientConfiguration
@Nullable public io.micronaut.discovery.registration.RegistrationConfiguration getRegistration()
getRegistration
in class io.micronaut.discovery.client.DiscoveryClientConfiguration
public java.lang.String getAwsServiceId()
public void setAwsServiceId(java.lang.String awsServiceId)
awsServiceId
- service idpublic io.micronaut.http.client.HttpClientConfiguration.ConnectionPoolConfiguration getConnectionPoolConfiguration()
getConnectionPoolConfiguration
in class io.micronaut.http.client.HttpClientConfiguration