Class ServicesConfigBlock
java.lang.Object
com.palantir.conjure.java.api.config.service.ServicesConfigBlock
Configuration class that contains a map of
serviceNames and their respective
PartialServiceConfigurations. Allows users to specify default properties for all services. Use a
ServiceConfigurationFactory to propagate the defaults to the partially-specified services and obtain
fully-specified ServiceConfiguration objects.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServicesConfigBlock.Builderbuilder()abstract Optional<com.palantir.tokens.auth.BearerToken> Fallback API token to be used if the service specific API token is not defined in thePartialServiceConfiguration.abstract Optional<HumanReadableDuration> Default global backoff slot size, seePartialServiceConfiguration.backoffSlotSize().abstract Optional<HumanReadableDuration> Default global connect timeout.Default enablement of gcm cipher suites, defaults to false.Default enablement of http/2..Deprecated.This option will be removed by the end of 2019.abstract Optional<ProxyConfiguration> Default global proxy configuration for connecting to the services.abstract Optional<HumanReadableDuration> Default global read timeout.abstract Optional<com.palantir.conjure.java.api.config.ssl.SslConfiguration> Fallback SSL Configuration to be used if the service specific SSL configuration is not defined in thePartialServiceConfiguration.abstract Optional<HumanReadableDuration> Default global write timeout.static ServicesConfigBlockempty()abstract Map<String, PartialServiceConfiguration> services()
-
Constructor Details
-
ServicesConfigBlock
public ServicesConfigBlock()
-
-
Method Details
-
defaultApiToken
Fallback API token to be used if the service specific API token is not defined in thePartialServiceConfiguration. -
defaultSecurity
public abstract Optional<com.palantir.conjure.java.api.config.ssl.SslConfiguration> defaultSecurity()Fallback SSL Configuration to be used if the service specific SSL configuration is not defined in thePartialServiceConfiguration. -
services
-
defaultProxyConfiguration
Default global proxy configuration for connecting to the services. -
defaultConnectTimeout
Default global connect timeout. -
defaultReadTimeout
Default global read timeout. -
defaultWriteTimeout
Default global write timeout. -
defaultBackoffSlotSize
Default global backoff slot size, seePartialServiceConfiguration.backoffSlotSize(). -
defaultEnableGcmCipherSuites
-
defaultEnableHttp2
-
defaultFallbackToCommonNameVerification
Deprecated.This option will be removed by the end of 2019. Certificates are expected to provide valid SANs.Default fallback to common name verification, defaults to false. -
empty
-
builder
-