Uses of Class
com.datastax.astra.sdk.config.AstraClientConfig
Package
Description
Astra Api Client main class.
Astra Api Client configuration classes (builder).
-
Uses of AstraClientConfig in com.datastax.astra.sdk
Modifier and TypeFieldDescriptionprotected AstraClientConfig
AstraClient.astraClientConfig
Keep some information related to Astra Settings.Modifier and TypeMethodDescriptionstatic AstraClientConfig
AstraClient.builder()
Builder PatternAstraClient.getConfig()
Getter to the configuration, it should not be changed.ModifierConstructorDescriptionAstraClient
(AstraClientConfig config) Initialization through builder. -
Uses of AstraClientConfig in com.datastax.astra.sdk.config
Modifier and TypeMethodDescriptionAstraClientConfig.addHttpObserver
(String name, io.stargate.sdk.audit.ServiceCallObserver observer) Api Invocations trigger some events processed in observer.AstraClientConfig.disableCrossRegionFailOver()
Disable crossRegionFailOverAstraClientConfig.disableDownloadSecureConnectBundle()
Disable SCB downloads.AstraClientConfig.enableCql()
Enable CqlSessionAstraClientConfig.enableCrossRegionFailOver()
Enable crossRegionFailOverAstraClientConfig.enableDownloadSecureConnectBundle()
Enable SCB downloads.AstraClientConfig.enableGrpc()
Enable gRPCAstraClientConfig.loadFromAstraRc()
Some settings can be loaded from ~/.astrarc in you machine.AstraClientConfig.secureConnectBundleFolder
(String path) Provide path of the SCB.AstraClientConfig.withClientId
(String clientId) Provide clientId.AstraClientConfig.withClientSecret
(String clientSecret) Provide clientSecret.AstraClientConfig.withCqlCloudSecureConnectBundle
(String scbFile) Populate Secure connect bundleAstraClientConfig.withCqlConsistencyLevel
(com.datastax.oss.driver.api.core.ConsistencyLevel cl) Populate Consistency levelAstraClientConfig.withCqlDriverConfig
(com.datastax.oss.driver.api.core.config.ProgrammaticDriverConfigLoaderBuilder conf) Populate config.AstraClientConfig.withCqlDriverConfigurationFile
(File configFile) Populate configuration fileAstraClientConfig.withCqlKeyspace
(String keyspace) Fill Keyspaces.AstraClientConfig.withCqlMetricsRegistry
(Object mr) Provide a metrics registry.AstraClientConfig.withCqlOptionBoolean
(com.datastax.oss.driver.api.core.config.TypedDriverOption<Boolean> option, Boolean du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionBooleanDC
(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<Boolean> option, Boolean du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionBooleanList
(com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Boolean>> option, List<Boolean> du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionBooleanListDC
(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Boolean>> option, List<Boolean> du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionClass
(com.datastax.oss.driver.api.core.config.TypedDriverOption<Class<?>> option, Class<?> du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionClassDC
(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<Class<?>> option, Class<?> du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionClassList
(com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Class<?>>> option, List<Class<?>> du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionClassListDC
(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Class<?>>> option, List<Class<?>> du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionDouble
(com.datastax.oss.driver.api.core.config.TypedDriverOption<Double> option, Double du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionDoubleDC
(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<Double> option, Double du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionDoubleList
(com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Double>> option, List<Double> du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionDoubleListDC
(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Double>> option, List<Double> du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionDuration
(com.datastax.oss.driver.api.core.config.TypedDriverOption<Duration> option, Duration du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionDurationDC
(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<Duration> option, Duration du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionDurationList
(com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Duration>> option, List<Duration> du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionDurationListDC
(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Duration>> option, List<Duration> du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionInteger
(com.datastax.oss.driver.api.core.config.TypedDriverOption<Integer> option, Integer du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionIntegerDC
(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<Integer> option, Integer du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionIntegerList
(com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Integer>> option, List<Integer> du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionIntegerListDC
(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Integer>> option, List<Integer> du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionLong
(com.datastax.oss.driver.api.core.config.TypedDriverOption<Long> option, Long du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionLongDC
(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<Long> option, Long du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionLongList
(com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Long>> option, List<Long> du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionLongListDC
(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Long>> option, List<Long> du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionString
(com.datastax.oss.driver.api.core.config.TypedDriverOption<String> option, String du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionStringDC
(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<String> option, String du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionStringList
(com.datastax.oss.driver.api.core.config.TypedDriverOption<List<String>> option, List<String> du) Add a property to the Cql Context.AstraClientConfig.withCqlOptionStringListDC
(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<List<String>> option, List<String> du) Add a property to the Cql Context.AstraClientConfig.withCqlRequestTracker
(com.datastax.oss.driver.api.core.tracker.RequestTracker rt) Provide a request tracker.AstraClientConfig.withCqlSecureConnectBundleFolder
(String scbPath) Provide clientSecret.AstraClientConfig.withDatabaseId
(String databaseId) Provider database identifierAstraClientConfig.withDatabaseRegion
(String databaseRegion) Provider database identifierAstraClientConfig.withHttpObservers
(Map<String, io.stargate.sdk.audit.ServiceCallObserver> observers) Api Invocations trigger some events processed in observer.AstraClientConfig.withHttpRequestConfig
(org.apache.hc.client5.http.config.RequestConfig reqConfig) Enable fine Grained configuration of the HTTP Client.AstraClientConfig.withHttpRetryConfig
(com.evanlennick.retry4j.config.RetryConfig retryConfig) Enable fine Grained configuration of the HTTP Retries.Provide token.