@@ -364,7 +364,15 @@ public ConfigBuilder withTrustStrategy( TrustStrategy trustStrategy )
364
364
* @param routingFailureLimit
365
365
* the number of times to retry each server in the list of routing servers
366
366
* @return this builder
367
+ * @deprecated in 1.2 because driver memorizes seed URI used during construction and falls back to it at
368
+ * runtime when all other known router servers failed to respond. Driver is also able to perform DNS lookup
369
+ * for the seed URI during rediscovery. This means updates of cluster members will be picked up if they are
370
+ * reflected in a DNS record. This configuration allowed driver to retry rediscovery procedure and postpone
371
+ * failure. Currently there exists a better way of doing retries via
372
+ * {@link Session#readTransaction(TransactionWork)} and {@link Session#writeTransaction(TransactionWork)}.
373
+ * <b>Method will be removed in the next major release.</b>
367
374
*/
375
+ @ Deprecated
368
376
public ConfigBuilder withRoutingFailureLimit ( int routingFailureLimit )
369
377
{
370
378
if ( routingFailureLimit < 1 )
@@ -398,7 +406,15 @@ public ConfigBuilder withRoutingFailureLimit( int routingFailureLimit )
398
406
* @param unit
399
407
* the unit in which the duration is given
400
408
* @return this builder
409
+ * @deprecated in 1.2 because driver memorizes seed URI used during construction and falls back to it at
410
+ * runtime when all other known router servers failed to respond. Driver is also able to perform DNS lookup
411
+ * for the seed URI during rediscovery. This means updates of cluster members will be picked up if they are
412
+ * reflected in a DNS record. This configuration allowed driver to retry rediscovery procedure and postpone
413
+ * failure. Currently there exists a better way of doing retries via
414
+ * {@link Session#readTransaction(TransactionWork)} and {@link Session#writeTransaction(TransactionWork)}.
415
+ * <b>Method will be removed in the next major release.</b>
401
416
*/
417
+ @ Deprecated
402
418
public ConfigBuilder withRoutingRetryDelay ( long delay , TimeUnit unit )
403
419
{
404
420
long routingRetryDelayMillis = unit .toMillis ( delay );
0 commit comments