@Internal
@Requires(env="ec2") @Requires(property="aws.service-discovery.enabled",value="true",defaultValue="false")
@ConfigurationProperties(value="aws.service-discovery.client")
public class AwsServiceDiscoveryClientConfiguration
extends io.micronaut.discovery.client.DiscoveryClientConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX |
static java.lang.String |
SERVICE_ID |
DEFAULT_CONNECTION_POOL_IDLE_TIMEOUT_SECONDS, DEFAULT_EXCEPTION_ON_ERROR_STATUS, DEFAULT_FOLLOW_REDIRECTS, DEFAULT_MAX_CONTENT_LENGTH, DEFAULT_READ_IDLE_TIMEOUT_MINUTES, DEFAULT_READ_TIMEOUT_SECONDS, DEFAULT_SHUTDOWN_QUIET_PERIOD_MILLISECONDS, DEFAULT_SHUTDOWN_TIMEOUT_MILLISECONDS
Constructor and Description |
---|
AwsServiceDiscoveryClientConfiguration() |
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, getConnectionPoolIdleTimeout, getConnectTimeout, getConnectTtl, getDefaultCharset, getEventLoopGroup, getHttpVersion, getLoggerName, getLogLevel, getMaxContentLength, getNumOfThreads, getProxyAddress, getProxyPassword, getProxySelector, getProxyType, getProxyUsername, getReadIdleTimeout, getReadTimeout, getShutdownQuietPeriod, getShutdownTimeout, getSslConfiguration, getThreadFactory, isExceptionOnErrorStatus, isFollowRedirects, resolveProxy, setChannelOptions, setConnectionPoolIdleTimeout, setConnectTimeout, setConnectTtl, setDefaultCharset, setEventLoopGroup, setExceptionOnErrorStatus, setFollowRedirects, setHttpVersion, setLoggerName, setLogLevel, setMaxContentLength, setNumOfThreads, setProxyAddress, setProxyPassword, setProxySelector, setProxyType, setProxyUsername, setReadIdleTimeout, setReadTimeout, setShutdownQuietPeriod, setShutdownTimeout, setSslConfiguration, setThreadFactory
public static final java.lang.String SERVICE_ID
public static final java.lang.String PREFIX
public AwsServiceDiscoveryClientConfiguration()
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