@ConfigurationProperties(value="eureka.client") @RequiresEureka public class EurekaConfiguration extends DiscoveryClientConfiguration
Modifier and Type | Class and Description |
---|---|
static class |
EurekaConfiguration.EurekaConnectionPoolConfiguration
The default connection pool configuration.
|
static class |
EurekaConfiguration.EurekaDiscoveryConfiguration
Configuration properties for Eureka client discovery.
|
static class |
EurekaConfiguration.EurekaRegistrationConfiguration
Configuration properties for Eureka client registration.
|
HttpClientConfiguration.ConnectionPoolConfiguration
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_PATH
The configuration name for Eureka context path.
|
static String |
CONTEXT_PATH_PLACEHOLDER
The configuration name for Eureka context path.
|
static String |
HOST
The configuration name for Eureka host.
|
static String |
PORT
The configuration name for Eureka port.
|
static String |
PREFIX
The prefix to use for all Eureka client settings.
|
DEFAULT_FOLLOW_REDIRECTS, DEFAULT_MAX_CONTENT_LENGTH, DEFAULT_READ_IDLE_TIMEOUT_MINUTES, DEFAULT_READ_TIMEOUT_SECONDS, DEFAULT_SHUTDOWN_TIMEOUT_MILLISECONDS
Constructor and Description |
---|
EurekaConfiguration(EurekaConfiguration.EurekaConnectionPoolConfiguration eurekaConnectionPoolConfiguration,
ApplicationConfiguration applicationConfiguration,
EurekaConfiguration.EurekaRegistrationConfiguration eurekaRegistrationConfiguration) |
Modifier and Type | Method and Description |
---|---|
HttpClientConfiguration.ConnectionPoolConfiguration |
getConnectionPoolConfiguration()
Obtains the connection pool configuration.
|
EurekaConfiguration.EurekaDiscoveryConfiguration |
getDiscovery() |
EurekaConfiguration.EurekaRegistrationConfiguration |
getRegistration() |
protected String |
getServiceID() |
void |
setDiscovery(EurekaConfiguration.EurekaDiscoveryConfiguration discovery) |
boolean |
shouldLogAmazonMetadataErrors() |
getAllZones, getContextPath, getDefaultZone, getHost, getPort, getServiceId, isSecure, isShouldUseDns, setContextPath, setDefaultZone, setHost, setPort, setSecure, setShouldUseDns, setZones, toString
getChannelOptions, getConnectTimeout, getDefaultCharset, getLoggerName, getMaxContentLength, getNumOfThreads, getProxyAddress, getProxyPassword, getProxySelector, getProxyType, getProxyUsername, getReadIdleTimeout, getReadTimeout, getShutdownTimeout, getSslConfiguration, getThreadFactory, isFollowRedirects, resolveProxy, setChannelOptions, setConnectTimeout, setDefaultCharset, setFollowRedirects, setLoggerName, setMaxContentLength, setNumOfThreads, setProxyAddress, setProxyPassword, setProxySelector, setProxyType, setProxyUsername, setReadIdleTimeout, setReadTimeout, setShutdownTimeout, setSslConfiguration, setThreadFactory
public static final String PREFIX
public static final String CONTEXT_PATH
public static final String CONTEXT_PATH_PLACEHOLDER
public static final String HOST
public static final String PORT
public EurekaConfiguration(EurekaConfiguration.EurekaConnectionPoolConfiguration eurekaConnectionPoolConfiguration, ApplicationConfiguration applicationConfiguration, @Nullable EurekaConfiguration.EurekaRegistrationConfiguration eurekaRegistrationConfiguration)
eurekaConnectionPoolConfiguration
- The connection pool configurationapplicationConfiguration
- The application configurationeurekaRegistrationConfiguration
- The optional Eureka registration configuration@Nonnull public EurekaConfiguration.EurekaDiscoveryConfiguration getDiscovery()
getDiscovery
in class DiscoveryClientConfiguration
public void setDiscovery(EurekaConfiguration.EurekaDiscoveryConfiguration discovery)
discovery
- The discovery configuration@Nullable public EurekaConfiguration.EurekaRegistrationConfiguration getRegistration()
getRegistration
in class DiscoveryClientConfiguration
public boolean shouldLogAmazonMetadataErrors()
protected String getServiceID()
getServiceID
in class DiscoveryClientConfiguration
public HttpClientConfiguration.ConnectionPoolConfiguration getConnectionPoolConfiguration()
HttpClientConfiguration
getConnectionPoolConfiguration
in class HttpClientConfiguration