56
56
* .healthCheckEnabled(true).build();
57
57
*
58
58
* // Build multi-cluster configuration
59
- * MultiDatabaseConfig config = MultiDatabaseConfig .builder(primary, secondary)
59
+ * MultiDbConfig config = MultiDbConfig .builder(primary, secondary)
60
60
* .circuitBreakerFailureRateThreshold(10.0f).retryMaxAttempts(3).failbackSupported(true)
61
61
* .gracePeriod(10000).build();
62
62
*
76
76
*/
77
77
// TODO: move
78
78
@ Experimental
79
- public final class MultiDatabaseConfig {
79
+ public final class MultiDbConfig {
80
80
81
81
/**
82
82
* Functional interface for creating {@link HealthCheckStrategy} instances for specific Redis
@@ -437,7 +437,7 @@ public static interface StrategySupplier {
437
437
private int delayInBetweenFailoverAttempts ;
438
438
439
439
/**
440
- * Constructs a new MultiDatabaseConfig with the specified cluster configurations.
440
+ * Constructs a new MultiDbConfig with the specified cluster configurations.
441
441
* <p>
442
442
* This constructor validates that at least one cluster configuration is provided and that all
443
443
* configurations are non-null. Use the {@link Builder} class for more convenient configuration
@@ -448,7 +448,7 @@ public static interface StrategySupplier {
448
448
* @throws IllegalArgumentException if any cluster configuration is null
449
449
* @see Builder#Builder(DatabaseConfig[])
450
450
*/
451
- public MultiDatabaseConfig (DatabaseConfig [] databaseConfigs ) {
451
+ public MultiDbConfig (DatabaseConfig [] databaseConfigs ) {
452
452
453
453
if (databaseConfigs == null || databaseConfigs .length < 1 ) throw new JedisValidationException (
454
454
"DatabaseClientConfigs are required for MultiDatabaseConnectionProvider" );
@@ -636,7 +636,7 @@ public boolean isFastFailover() {
636
636
}
637
637
638
638
/**
639
- * Creates a new Builder instance for configuring MultiDatabaseConfig .
639
+ * Creates a new Builder instance for configuring MultiDbConfig .
640
640
* <p>
641
641
* At least one cluster configuration must be added to the builder before calling build(). Use the
642
642
* endpoint() methods to add cluster configurations.
@@ -650,7 +650,7 @@ public static Builder builder() {
650
650
}
651
651
652
652
/**
653
- * Creates a new Builder instance for configuring MultiDatabaseConfig .
653
+ * Creates a new Builder instance for configuring MultiDbConfig .
654
654
* @param databaseConfigs array of cluster configurations defining available Redis endpoints
655
655
* @return new Builder instance
656
656
* @throws JedisValidationException if databaseConfigs is null or empty
@@ -661,7 +661,7 @@ public static Builder builder(DatabaseConfig[] databaseConfigs) {
661
661
}
662
662
663
663
/**
664
- * Creates a new Builder instance for configuring MultiDatabaseConfig .
664
+ * Creates a new Builder instance for configuring MultiDbConfig .
665
665
* @param databaseConfigs list of cluster configurations defining available Redis endpoints
666
666
* @return new Builder instance
667
667
* @throws JedisValidationException if databaseConfigs is null or empty
@@ -976,15 +976,15 @@ public DatabaseConfig build() {
976
976
}
977
977
978
978
/**
979
- * Builder class for creating MultiDatabaseConfig instances with comprehensive configuration
979
+ * Builder class for creating MultiDbConfig instances with comprehensive configuration
980
980
* options.
981
981
* <p>
982
982
* The Builder provides a fluent API for configuring all aspects of multi-cluster failover
983
983
* behavior, including retry logic, circuit breaker settings, and failback mechanisms. It uses
984
984
* sensible defaults based on production best practices while allowing fine-tuning for specific
985
985
* requirements.
986
986
* </p>
987
- * @see MultiDatabaseConfig
987
+ * @see MultiDbConfig
988
988
* @see DatabaseConfig
989
989
*/
990
990
public static class Builder {
@@ -1499,17 +1499,17 @@ public Builder delayInBetweenFailoverAttempts(int delayInBetweenFailoverAttempts
1499
1499
}
1500
1500
1501
1501
/**
1502
- * Builds and returns a new MultiDatabaseConfig instance with all configured settings.
1502
+ * Builds and returns a new MultiDbConfig instance with all configured settings.
1503
1503
* <p>
1504
1504
* This method creates the final configuration object by copying all builder settings to the
1505
1505
* configuration instance. The builder can be reused after calling build() to create additional
1506
1506
* configurations with different settings.
1507
1507
* </p>
1508
- * @return a new MultiDatabaseConfig instance with the configured settings
1508
+ * @return a new MultiDbConfig instance with the configured settings
1509
1509
*/
1510
- public MultiDatabaseConfig build () {
1510
+ public MultiDbConfig build () {
1511
1511
1512
- MultiDatabaseConfig config = new MultiDatabaseConfig (
1512
+ MultiDbConfig config = new MultiDbConfig (
1513
1513
this .databaseConfigs .toArray (new DatabaseConfig [0 ]));
1514
1514
1515
1515
// Copy retry configuration
0 commit comments