Interface SpringCloudConfigClientConfig
@ConfigMapping(prefix="quarkus.spring-cloud-config")
@ConfigRoot(phase=RUN_TIME)
public interface SpringCloudConfigClientConfig
-
Method Summary
Modifier and TypeMethodDescription@WithConverter(io.quarkus.runtime.configuration.DurationConverter.class) DurationThe amount of time to wait when initially establishing a connection before giving up and timing out.booleanenabled()If enabled, will try to read the configuration from a Spring Cloud Config ServerbooleanfailFast()If set to true, the application will not stand up if it cannot obtain configuration from the Config Serverheaders()Custom headers to pass the Spring Cloud Config Server when performing the HTTP requestPassword to recover key from KeyStore for SSL client authentication with the Config server If no value is provided, the key-store-password will be usedkeyStore()KeyStore to be used containing the SSL certificate for authentication with the Config server Can be either a classpath resource or a file system pathPassword of KeyStore to be used containing the SSL certificate for authentication with the Config serverlabel()The label to be used to pull remote configuration properties.password()The password to be used if the Config Server has BASIC Auth enabledprofiles()The profiles to use for lookup@WithConverter(io.quarkus.runtime.configuration.DurationConverter.class) DurationThe amount of time to wait for a read on a socket before an exception is thrown.booleanWhen using HTTPS and no keyStore has been specified, whether to trust all certificatesTrustStore to be used containing the SSL certificate used by the Config server Can be either a classpath resource or a file system pathPassword of TrustStore to be used containing the SSL certificate used by the Config serverurl()The Base URI where the Spring Cloud Config Server is availableusername()The username to be used if the Config Server has BASIC Auth enableddefault boolean
-
Method Details
-
enabled
@WithDefault("false") boolean enabled()If enabled, will try to read the configuration from a Spring Cloud Config Server -
failFast
@WithDefault("false") boolean failFast()If set to true, the application will not stand up if it cannot obtain configuration from the Config Server -
url
The Base URI where the Spring Cloud Config Server is available -
label
The label to be used to pull remote configuration properties. The default is set on the Spring Cloud Config Server (generally "master" when the server uses a Git backend). -
connectionTimeout
@WithDefault("10S") @WithConverter(io.quarkus.runtime.configuration.DurationConverter.class) @WithConverter(io.quarkus.runtime.configuration.DurationConverter.class) Duration connectionTimeout()The amount of time to wait when initially establishing a connection before giving up and timing out.Specify `0` to wait indefinitely.
-
readTimeout
@WithDefault("60S") @WithConverter(io.quarkus.runtime.configuration.DurationConverter.class) @WithConverter(io.quarkus.runtime.configuration.DurationConverter.class) Duration readTimeout()The amount of time to wait for a read on a socket before an exception is thrown.Specify `0` to wait indefinitely.
-
username
The username to be used if the Config Server has BASIC Auth enabled -
password
The password to be used if the Config Server has BASIC Auth enabled -
trustStore
@WithConverter(io.quarkus.runtime.configuration.PathConverter.class) @WithConverter(io.quarkus.runtime.configuration.PathConverter.class) Optional<Path> trustStore()TrustStore to be used containing the SSL certificate used by the Config server Can be either a classpath resource or a file system path -
trustStorePassword
Password of TrustStore to be used containing the SSL certificate used by the Config server -
keyStore
@WithConverter(io.quarkus.runtime.configuration.PathConverter.class) @WithConverter(io.quarkus.runtime.configuration.PathConverter.class) Optional<Path> keyStore()KeyStore to be used containing the SSL certificate for authentication with the Config server Can be either a classpath resource or a file system path -
keyStorePassword
Password of KeyStore to be used containing the SSL certificate for authentication with the Config server -
keyPassword
Password to recover key from KeyStore for SSL client authentication with the Config server If no value is provided, the key-store-password will be used -
trustCerts
@WithDefault("${quarkus.tls.trust-all:false}") boolean trustCerts()When using HTTPS and no keyStore has been specified, whether to trust all certificates -
headers
Custom headers to pass the Spring Cloud Config Server when performing the HTTP request -
profiles
The profiles to use for lookup -
usernameAndPasswordSet
default boolean usernameAndPasswordSet()
-