Uses of Class
io.stargate.sdk.StargateClientBuilder
-
Uses of StargateClientBuilder in io.stargate.sdk
Methods in io.stargate.sdk that return StargateClientBuilderModifier and TypeMethodDescriptionStargateClientBuilder.addDocumentService(io.stargate.sdk.http.ServiceHttp doc) Add a new Document Service.StargateClientBuilder.addDocumentService(String dc, io.stargate.sdk.http.ServiceHttp rest) Populate current datacenter.StargateClientBuilder.addGraphQLService(io.stargate.sdk.http.ServiceHttp rest) Add a GraphQL Service in the current DCStargateClientBuilder.addGraphQLService(String dc, io.stargate.sdk.http.ServiceHttp rest) Populate current datacenter.StargateClientBuilder.addGrpcService(ServiceGrpc grpc) Populate current datacenter.StargateClientBuilder.addGrpcService(String dc, ServiceGrpc grpc) Populate current datacenter.StargateClientBuilder.addHttpObserver(String name, io.stargate.sdk.audit.ServiceCallObserver observer) Api Invocations trigger some events processed in observer.StargateClientBuilder.addServiceJson(String dc, io.stargate.sdk.http.ServiceHttp json) Populate current datacenter.StargateClientBuilder.addServiceRest(io.stargate.sdk.http.ServiceHttp rest) Add a node to the cluster.StargateClientBuilder.addServiceRest(String dc, io.stargate.sdk.http.ServiceHttp rest) Populate current datacenter.static StargateClientBuilderStargateClient.builder()Builder PatternStargateClientBuilder.enableCql()By default Cqlsession is not created, you can enable the flag or using any withCql* operations to enableit.StargateClientBuilder.enableGrpc()By default Cqlsession is not created, you can enable the flag or using any withCql* operations to enableit.StargateClientBuilder.withApiToken(String token) Api token available for all the nodes.StargateClientBuilder.withApiTokenProvider(String... url) You will get one token provider for a DCStargateClientBuilder.withApiTokenProviderDC(String dc, io.stargate.sdk.api.TokenProvider tokenProvider) Provide token provider for a DC.StargateClientBuilder.withApiTokenProviderDC(String dc, String... url) You will get one token provider for a DCStargateClientBuilder.withAuthCredentials(String username, String password) Fill username and password.StargateClientBuilder.withCqlCloudSecureConnectBundle(String cloudConfigUrl) Providing SCB.StargateClientBuilder.withCqlCloudSecureConnectBundleDC(String dc, String cloudConfigUrl) Providing SCB.StargateClientBuilder.withCqlConsistencyLevel(com.datastax.oss.driver.api.core.ConsistencyLevel cl) Set the consistency levelStargateClientBuilder.withCqlConsistencyLevelDC(String dc, com.datastax.oss.driver.api.core.ConsistencyLevel cl) Define consistency level for a DC.StargateClientBuilder.withCqlContactPoints(String... contactPoints) Fill contact points.StargateClientBuilder.withCqlContactPointsDC(String dc, String... contactPoints) Fill contact points.StargateClientBuilder.withCqlDriverConfigLoaderBuilder(com.datastax.oss.driver.api.core.config.ProgrammaticDriverConfigLoaderBuilder pdclb) Provide the proper programmatic config loader builder.StargateClientBuilder.withCqlDriverConfigurationFile(File configFile) You want to initialize CqlSession with a configuration fileStargateClientBuilder.withCqlKeyspace(String keyspace) Fill Keyspaces.StargateClientBuilder.withCqlMetricsRegistry(Object registry) Metrics registry.StargateClientBuilder.withCqlOptionBoolean(com.datastax.oss.driver.api.core.config.TypedDriverOption<Boolean> option, Boolean du) Add a property to the Cql Context.StargateClientBuilder.withCqlOptionBooleanDC(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<Boolean> option, Boolean du) Add a propery to the Cql Context.StargateClientBuilder.withCqlOptionBooleanList(com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Boolean>> option, List<Boolean> du) Add a property to the Cql Context.StargateClientBuilder.withCqlOptionBooleanListDC(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Boolean>> option, List<Boolean> du) Add a propery to the Cql Context.StargateClientBuilder.withCqlOptionClass(com.datastax.oss.driver.api.core.config.TypedDriverOption<Class<?>> option, Class<?> du) Add a property to the Cql Context.StargateClientBuilder.withCqlOptionClassDC(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<Class<?>> option, Class<?> du) Add a propery to the Cql Context.StargateClientBuilder.withCqlOptionClassList(com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Class<?>>> option, List<Class<?>> du) Add a property to the Cql Context.StargateClientBuilder.withCqlOptionClassListDC(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Class<?>>> option, List<Class<?>> du) Add a propery to the Cql Context.StargateClientBuilder.withCqlOptionDouble(com.datastax.oss.driver.api.core.config.TypedDriverOption<Double> option, Double du) Add a property to the Cql Context.StargateClientBuilder.withCqlOptionDoubleDC(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<Double> option, Double du) Add a propery to the Cql Context.StargateClientBuilder.withCqlOptionDoubleList(com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Double>> option, List<Double> du) Add a property to the Cql Context.StargateClientBuilder.withCqlOptionDoubleListDC(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Double>> option, List<Double> du) Add a propery to the Cql Context.StargateClientBuilder.withCqlOptionDuration(com.datastax.oss.driver.api.core.config.TypedDriverOption<Duration> option, Duration du) Add a property to the Cql Context.StargateClientBuilder.withCqlOptionDurationDC(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<Duration> option, Duration du) Add a propery to the Cql Context.StargateClientBuilder.withCqlOptionDurationList(com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Duration>> option, List<Duration> du) Add a property to the Cql Context.StargateClientBuilder.withCqlOptionDurationListDC(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Duration>> option, List<Duration> du) Add a propery to the Cql Context.StargateClientBuilder.withCqlOptionInteger(com.datastax.oss.driver.api.core.config.TypedDriverOption<Integer> option, Integer du) Add a property to the Cql Context.StargateClientBuilder.withCqlOptionIntegerDC(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<Integer> option, Integer du) Add a propery to the Cql Context.StargateClientBuilder.withCqlOptionIntegerList(com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Integer>> option, List<Integer> du) Add a property to the Cql Context.StargateClientBuilder.withCqlOptionIntegerListDC(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Integer>> option, List<Integer> du) Add a propery to the Cql Context.StargateClientBuilder.withCqlOptionLong(com.datastax.oss.driver.api.core.config.TypedDriverOption<Long> option, Long du) Add a property to the Cql Context.StargateClientBuilder.withCqlOptionLongDC(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<Long> option, Long du) Add a propery to the Cql Context.StargateClientBuilder.withCqlOptionLongList(com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Long>> option, List<Long> du) Add a property to the Cql Context.StargateClientBuilder.withCqlOptionLongListDC(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<List<Long>> option, List<Long> du) Add a propery to the Cql Context.StargateClientBuilder.withCqlOptionString(com.datastax.oss.driver.api.core.config.TypedDriverOption<String> option, String du) Add a property to the Cql Context.StargateClientBuilder.withCqlOptionStringDC(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<String> option, String du) Add a propery to the Cql Context.StargateClientBuilder.withCqlOptionStringList(com.datastax.oss.driver.api.core.config.TypedDriverOption<List<String>> option, List<String> du) Add a property to the Cql Context.StargateClientBuilder.withCqlOptionStringListDC(String dc, com.datastax.oss.driver.api.core.config.TypedDriverOption<List<String>> option, List<String> du) Add a propery to the Cql Context.StargateClientBuilder.withCqlRequestTracker(com.datastax.oss.driver.api.core.tracker.RequestTracker cqlReqTracker) CqlRequest Tracker registry.StargateClientBuilder.withCqlSession(com.datastax.oss.driver.api.core.CqlSession cql) Provide your own CqlSession skipping settings in the builder.StargateClientBuilder.withHttpObservers(Map<String, io.stargate.sdk.audit.ServiceCallObserver> observers) Api Invocations trigger some events processed in observer.StargateClientBuilder.withHttpRequestConfig(org.apache.hc.client5.http.config.RequestConfig reqConfig) Enable fine Grained configuration of the HTTP Client.StargateClientBuilder.withHttpRetryConfig(com.evanlennick.retry4j.config.RetryConfig retryConfig) Enable fine Grained configuration of the HTTP Retries.StargateClientBuilder.withLocalDatacenter(String localDc) Populate current datacenter.Constructors in io.stargate.sdk with parameters of type StargateClientBuilderModifierConstructorDescriptionStargateClient(StargateClientBuilder config) Initialize the client from builder parameters.