@@ -35,11 +35,11 @@ public Replication(Builder builder) {
3535
3636 public static record AsyncReplicationConfig (
3737 @ SerializedName ("hashtreeHeight" ) Integer hashTreeHeight ,
38- @ SerializedName ("maxWorkers" ) Integer replicationConcurrency ,
39- @ SerializedName ("frequency" ) Integer replicationFrequencyMillis ,
40- @ SerializedName ("frequencyWhilePropagating" ) Integer replicationFrequencyMillisWhilePropagating ,
41- @ SerializedName ("aliveNodesCheckingFrequency" ) Integer nodePingFrequencyMillis ,
42- @ SerializedName ("loggingFrequency" ) Integer loggingFrequencyMillis ,
38+ @ SerializedName ("maxWorkers" ) Integer maxWorkers ,
39+ @ SerializedName ("frequency" ) Integer frequencyMillis ,
40+ @ SerializedName ("frequencyWhilePropagating" ) Integer frequencyMillisWhilePropagating ,
41+ @ SerializedName ("aliveNodesCheckingFrequency" ) Integer aliveNodesCheckingFrequencyMillis ,
42+ @ SerializedName ("loggingFrequency" ) Integer loggingFrequencySeconds ,
4343 @ SerializedName ("diffBatchSize" ) Integer diffBatchSize ,
4444 @ SerializedName ("diffPerNodeTimeout" ) Integer diffPerNodeTimeoutSeconds ,
4545 @ SerializedName ("prePropagationTimeout" ) Integer prePropagationTimeoutSeconds ,
@@ -52,11 +52,11 @@ public static record AsyncReplicationConfig(
5252 public AsyncReplicationConfig (Builder builder ) {
5353 this (
5454 builder .hashTreeHeight ,
55- builder .replicationConcurrency ,
56- builder .replicationFrequencyMillis ,
57- builder .replicationFrequencyMillisWhilePropagating ,
58- builder .nodePingFrequencyMillis ,
59- builder .loggingFrequencyMillis ,
55+ builder .maxWorkers ,
56+ builder .frequencyMillis ,
57+ builder .frequencyMillisWhilePropagating ,
58+ builder .aliveNodesCheckingFrequencyMillis ,
59+ builder .loggingFrequencySeconds ,
6060 builder .diffBatchSize ,
6161 builder .diffPerNodeTimeoutSeconds ,
6262 builder .prePropagationTimeoutSeconds ,
@@ -73,11 +73,11 @@ public static AsyncReplicationConfig of(Function<Builder, ObjectBuilder<AsyncRep
7373
7474 public static class Builder implements ObjectBuilder <AsyncReplicationConfig > {
7575 private Integer hashTreeHeight ;
76- private Integer replicationConcurrency ;
77- private Integer replicationFrequencyMillis ;
78- private Integer replicationFrequencyMillisWhilePropagating ;
79- private Integer nodePingFrequencyMillis ;
80- private Integer loggingFrequencyMillis ;
76+ private Integer maxWorkers ;
77+ private Integer frequencyMillis ;
78+ private Integer frequencyMillisWhilePropagating ;
79+ private Integer aliveNodesCheckingFrequencyMillis ;
80+ private Integer loggingFrequencySeconds ;
8181 private Integer diffBatchSize ;
8282 private Integer diffPerNodeTimeoutSeconds ;
8383 private Integer prePropagationTimeoutSeconds ;
@@ -94,38 +94,38 @@ public Builder hashTreeHeight(int hashTreeHeight) {
9494 }
9595
9696 /** Maximum number of async replication workers. */
97- public Builder replicationConcurrency (int replicationConcurrency ) {
98- this .replicationConcurrency = replicationConcurrency ;
97+ public Builder maxWorkers (int maxWorkers ) {
98+ this .maxWorkers = maxWorkers ;
9999 return this ;
100100 }
101101
102102 /**
103103 * Base frequency in milliseconds at which async replication
104104 * runs diff calculations.
105105 */
106- public Builder replicationFrequencyMillis (int replicationFrequencyMillis ) {
107- this .replicationFrequencyMillis = replicationFrequencyMillis ;
106+ public Builder frequencyMillis (int frequencyMillis ) {
107+ this .frequencyMillis = frequencyMillis ;
108108 return this ;
109109 }
110110
111111 /**
112112 * Frequency in milliseconds at which async replication runs
113113 * while propagation is active.
114114 */
115- public Builder replicationFrequencyMillisWhilePropagating (int replicationFrequencyMillisWhilePropagating ) {
116- this .replicationFrequencyMillisWhilePropagating = replicationFrequencyMillisWhilePropagating ;
115+ public Builder frequencyMillisWhilePropagating (int frequencyMillisWhilePropagating ) {
116+ this .frequencyMillisWhilePropagating = frequencyMillisWhilePropagating ;
117117 return this ;
118118 }
119119
120120 /** Interval in milliseconds at which liveness of target nodes is checked." */
121- public Builder nodePingFrequencyMillis (int nodePingFrequencyMillis ) {
122- this .nodePingFrequencyMillis = nodePingFrequencyMillis ;
121+ public Builder aliveNodesCheckingFrequencyMillis (int aliveNodesCheckingFrequencyMillis ) {
122+ this .aliveNodesCheckingFrequencyMillis = aliveNodesCheckingFrequencyMillis ;
123123 return this ;
124124 }
125125
126126 /** Interval in seconds at which async replication logs its status. */
127- public Builder loggingFrequencyMillis (int loggingFrequencyMillis ) {
128- this .loggingFrequencyMillis = loggingFrequencyMillis ;
127+ public Builder loggingFrequencySeconds (int loggingFrequencySeconds ) {
128+ this .loggingFrequencySeconds = loggingFrequencySeconds ;
129129 return this ;
130130 }
131131
0 commit comments