@RequiresSpringCloudConfig @ConfigurationProperties(value="spring.cloud.config") public class SpringCloudConfigConfiguration extends HttpClientConfiguration
HttpClientConfiguration
for Spring Cloud Config.Modifier and Type | Class and Description |
---|---|
static class |
SpringCloudConfigConfiguration.SpringCloudConnectionPoolConfiguration
The default connection pool configuration.
|
static class |
SpringCloudConfigConfiguration.SpringConfigDiscoveryConfiguration
Configuration class for Consul client config.
|
HttpClientConfiguration.ConnectionPoolConfiguration
Modifier and Type | Field and Description |
---|---|
static String |
PREFIX |
static String |
SPRING_CLOUD_CONFIG_ENDPOINT |
DEFAULT_FOLLOW_REDIRECTS, DEFAULT_MAX_CONTENT_LENGTH, DEFAULT_READ_IDLE_TIMEOUT_MINUTES, DEFAULT_READ_TIMEOUT_SECONDS, DEFAULT_SHUTDOWN_TIMEOUT_MILLISECONDS
Constructor and Description |
---|
SpringCloudConfigConfiguration()
Default constructor.
|
SpringCloudConfigConfiguration(SpringCloudConfigConfiguration.SpringCloudConnectionPoolConfiguration springCloudConnectionPoolConfiguration,
ApplicationConfiguration applicationConfiguration) |
Modifier and Type | Method and Description |
---|---|
SpringCloudConfigConfiguration.SpringConfigDiscoveryConfiguration |
getConfiguration() |
HttpClientConfiguration.ConnectionPoolConfiguration |
getConnectionPoolConfiguration()
Obtains the connection pool configuration.
|
Optional<String> |
getUri() |
void |
setUri(String uri)
Set the Spring Cloud config server uri.
|
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 SPRING_CLOUD_CONFIG_ENDPOINT
public SpringCloudConfigConfiguration()
@Inject public SpringCloudConfigConfiguration(SpringCloudConfigConfiguration.SpringCloudConnectionPoolConfiguration springCloudConnectionPoolConfiguration, ApplicationConfiguration applicationConfiguration)
springCloudConnectionPoolConfiguration
- The connection pool configurationapplicationConfiguration
- The application configuration@Nonnull public HttpClientConfiguration.ConnectionPoolConfiguration getConnectionPoolConfiguration()
HttpClientConfiguration
getConnectionPoolConfiguration
in class HttpClientConfiguration
@Nonnull public SpringCloudConfigConfiguration.SpringConfigDiscoveryConfiguration getConfiguration()
public void setUri(String uri)
uri
- Spring Cloud config server uri