Package io.micronaut.discovery.eureka
Class EurekaConfiguration
java.lang.Object
io.micronaut.http.client.HttpClientConfiguration
io.micronaut.discovery.client.DiscoveryClientConfiguration
io.micronaut.discovery.eureka.EurekaConfiguration
@ConfigurationProperties("eureka.client")
@Requires(property="eureka.client")
public class EurekaConfiguration
extends DiscoveryClientConfiguration
Configuration options for the Eureka client.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The default connection pool configuration.static class
Configuration properties for Eureka client discovery.static class
Configuration properties for Eureka client registration.Nested classes/interfaces inherited from class io.micronaut.http.client.HttpClientConfiguration
io.micronaut.http.client.HttpClientConfiguration.ConnectionPoolConfiguration
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The configuration name for Eureka context path.static final String
The configuration name for Eureka context path.static final String
The configuration name for Eureka host.static final String
The configuration name for Eureka port.static final String
The prefix to use for all Eureka client settings.Fields inherited from class io.micronaut.http.client.HttpClientConfiguration
DEFAULT_ALLOW_BLOCK_EVENT_LOOP, 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 Summary
ConstructorDescriptionEurekaConfiguration
(EurekaConfiguration.EurekaConnectionPoolConfiguration eurekaConnectionPoolConfiguration, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, @Nullable EurekaConfiguration.EurekaRegistrationConfiguration eurekaRegistrationConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.http.client.HttpClientConfiguration.ConnectionPoolConfiguration
protected String
void
boolean
Methods inherited from class io.micronaut.discovery.client.DiscoveryClientConfiguration
getAllZones, getContextPath, getDefaultZone, getHost, getPort, getServiceId, isSecure, isShouldUseDns, setContextPath, setDefaultZone, setHost, setPort, setSecure, setShouldUseDns, setZones, toString
Methods inherited from class io.micronaut.http.client.HttpClientConfiguration
getAlpnModes, getChannelOptions, getConnectionPoolIdleTimeout, getConnectTimeout, getConnectTtl, getDefaultCharset, getEventLoopGroup, getHttpVersion, getLoggerName, getLogLevel, getMaxContentLength, getNumOfThreads, getPlaintextMode, getProxyAddress, getProxyPassword, getProxySelector, getProxyType, getProxyUsername, getReadIdleTimeout, getReadTimeout, getShutdownQuietPeriod, getShutdownTimeout, getSslConfiguration, getThreadFactory, isAllowBlockEventLoop, isExceptionOnErrorStatus, isFollowRedirects, resolveProxy, setAllowBlockEventLoop, setAlpnModes, setChannelOptions, setConnectionPoolIdleTimeout, setConnectTimeout, setConnectTtl, setDefaultCharset, setEventLoopGroup, setExceptionOnErrorStatus, setFollowRedirects, setHttpVersion, setLoggerName, setLogLevel, setMaxContentLength, setNumOfThreads, setPlaintextMode, setProxyAddress, setProxyPassword, setProxySelector, setProxyType, setProxyUsername, setReadIdleTimeout, setReadTimeout, setShutdownQuietPeriod, setShutdownTimeout, setSslConfiguration, setThreadFactory
-
Field Details
-
PREFIX
The prefix to use for all Eureka client settings.- See Also:
-
CONTEXT_PATH
The configuration name for Eureka context path.- See Also:
-
CONTEXT_PATH_PLACEHOLDER
The configuration name for Eureka context path.- See Also:
-
HOST
The configuration name for Eureka host.- See Also:
-
PORT
The configuration name for Eureka port.- See Also:
-
-
Constructor Details
-
EurekaConfiguration
public EurekaConfiguration(EurekaConfiguration.EurekaConnectionPoolConfiguration eurekaConnectionPoolConfiguration, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, @Nullable @Nullable EurekaConfiguration.EurekaRegistrationConfiguration eurekaRegistrationConfiguration) - Parameters:
eurekaConnectionPoolConfiguration
- The connection pool configurationapplicationConfiguration
- The application configurationeurekaRegistrationConfiguration
- The optional Eureka registration configuration
-
-
Method Details
-
getDiscovery
- Specified by:
getDiscovery
in classDiscoveryClientConfiguration
- Returns:
- The default discovery configuration
-
setDiscovery
- Parameters:
discovery
- The discovery configuration
-
getRegistration
- Specified by:
getRegistration
in classDiscoveryClientConfiguration
- Returns:
- The default registration configuration
-
shouldLogAmazonMetadataErrors
public boolean shouldLogAmazonMetadataErrors()- Returns:
- Whether should log Amazon Metadata errors
-
getServiceID
- Specified by:
getServiceID
in classDiscoveryClientConfiguration
- Returns:
- The Service ID
-
getConnectionPoolConfiguration
public io.micronaut.http.client.HttpClientConfiguration.ConnectionPoolConfiguration getConnectionPoolConfiguration()- Specified by:
getConnectionPoolConfiguration
in classio.micronaut.http.client.HttpClientConfiguration
-