From ef20b7d1b76a250368d0ecaf7bad130f7644b2fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20B=C4=85czkowski?= Date: Mon, 6 Mar 2023 12:29:48 +0100 Subject: [PATCH] Add missing javadoc for withScyllaCloudConnectionConfig --- .../com/datastax/driver/core/Cluster.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/driver-core/src/main/java/com/datastax/driver/core/Cluster.java b/driver-core/src/main/java/com/datastax/driver/core/Cluster.java index 1bb68ca5a34..307cbe9b61a 100644 --- a/driver-core/src/main/java/com/datastax/driver/core/Cluster.java +++ b/driver-core/src/main/java/com/datastax/driver/core/Cluster.java @@ -1385,19 +1385,57 @@ public Builder withNoCompact() { return this; } + /** + * Configure for Scylla Cloud Serverless cluster using configuration bundle. + * + * @param configurationFile + * @return + * @throws IOException + * @see Builder#withScyllaCloudConnectionConfig(ScyllaCloudConnectionConfig) + */ public Builder withScyllaCloudConnectionConfig(File configurationFile) throws IOException { return withScyllaCloudConnectionConfig(configurationFile.toURI().toURL()); } + /** + * Configure for Scylla Cloud Serverless cluster using URL to configuration bundle. + * + * @param configurationUrl + * @return + * @throws IOException + * @see Builder#withScyllaCloudConnectionConfig(ScyllaCloudConnectionConfig) + */ public Builder withScyllaCloudConnectionConfig(URL configurationUrl) throws IOException { return withScyllaCloudConnectionConfig(configurationUrl.openStream()); } + /** + * Configure for Scylla Cloud Serverless cluster using InputStream of configuration bundle. + * + * @param inputStream + * @return + * @throws IOException + * @see Builder#withScyllaCloudConnectionConfig(ScyllaCloudConnectionConfig) + */ public Builder withScyllaCloudConnectionConfig(InputStream inputStream) throws IOException { return withScyllaCloudConnectionConfig( ScyllaCloudConnectionConfig.fromInputStream(inputStream)); } + /** + * Sets a collection of options for connecting to Scylla Cloud Serverless cluster. + * + *

Sets several options according to provided {@link ScyllaCloudConnectionConfig}. This + * includes calling {@link Builder#withEndPointFactory(EndPointFactory)}, {@link + * Builder#withSSL(SSLOptions)}, {@link Builder#withAuthProvider(AuthProvider)}, {@link + * Builder#withoutAdvancedShardAwareness()} with parameters derived from the config. + * + *

Cannot be combined with {@link Builder#addContactPoint}. All contact points should already + * be provided in {@link ScyllaCloudConnectionConfig}. + * + * @param config + * @return + */ protected Builder withScyllaCloudConnectionConfig(ScyllaCloudConnectionConfig config) { try { ScyllaCloudDatacenter currentDatacenter = config.getCurrentDatacenter();