@@ -119,7 +119,7 @@ public final class DistributedConfig extends WorkerConfig {
119
119
*/
120
120
public static final String WORKER_UNSYNC_BACKOFF_MS_CONFIG = "worker.unsync.backoff.ms" ;
121
121
private static final String WORKER_UNSYNC_BACKOFF_MS_DOC = "When the worker is out of sync with other workers and " +
122
- " fails to catch up within worker.sync.timeout.ms, leave the Connect cluster for this long before rejoining." ;
122
+ " fails to catch up within the <code> worker.sync.timeout.ms</code> , leave the Connect cluster for this long before rejoining." ;
123
123
public static final int WORKER_UNSYNC_BACKOFF_MS_DEFAULT = 5 * 60 * 1000 ;
124
124
125
125
public static final String CONFIG_STORAGE_PREFIX = "config.storage." ;
@@ -206,20 +206,20 @@ public final class DistributedConfig extends WorkerConfig {
206
206
public static final Long INTER_WORKER_KEY_SIZE_DEFAULT = null ;
207
207
208
208
public static final String INTER_WORKER_KEY_TTL_MS_CONFIG = "inter.worker.key.ttl.ms" ;
209
- public static final String INTER_WORKER_KEY_TTL_MS_MS_DOC = "The TTL of generated session keys used for "
209
+ public static final String INTER_WORKER_KEY_TTL_MS_DOC = "The TTL of generated session keys used for "
210
210
+ "internal request validation (in milliseconds)" ;
211
- public static final int INTER_WORKER_KEY_TTL_MS_MS_DEFAULT = Math .toIntExact (TimeUnit .HOURS .toMillis (1 ));
211
+ public static final int INTER_WORKER_KEY_TTL_MS_DEFAULT = Math .toIntExact (TimeUnit .HOURS .toMillis (1 ));
212
212
213
213
public static final String INTER_WORKER_SIGNATURE_ALGORITHM_CONFIG = "inter.worker.signature.algorithm" ;
214
214
public static final String INTER_WORKER_SIGNATURE_ALGORITHM_DEFAULT = "HmacSHA256" ;
215
- public static final String INTER_WORKER_SIGNATURE_ALGORITHM_DOC = "The algorithm used to sign internal requests"
216
- + "The algorithm '" + INTER_WORKER_SIGNATURE_ALGORITHM_CONFIG + "' will be used as a default on JVMs that support it; "
215
+ public static final String INTER_WORKER_SIGNATURE_ALGORITHM_DOC = "The algorithm used to sign internal requests. "
216
+ + "The algorithm '" + INTER_WORKER_SIGNATURE_ALGORITHM_DEFAULT + "' will be used as a default on JVMs that support it; "
217
217
+ "on other JVMs, no default is used and a value for this property must be manually specified in the worker config." ;
218
218
219
219
public static final String INTER_WORKER_VERIFICATION_ALGORITHMS_CONFIG = "inter.worker.verification.algorithms" ;
220
220
public static final List <String > INTER_WORKER_VERIFICATION_ALGORITHMS_DEFAULT = List .of (INTER_WORKER_SIGNATURE_ALGORITHM_DEFAULT );
221
221
public static final String INTER_WORKER_VERIFICATION_ALGORITHMS_DOC = "A list of permitted algorithms for verifying internal requests, "
222
- + "which must include the algorithm used for the " + INTER_WORKER_SIGNATURE_ALGORITHM_CONFIG + " property. "
222
+ + "which must include the algorithm used for the <code> " + INTER_WORKER_SIGNATURE_ALGORITHM_CONFIG + "</code> property. "
223
223
+ "The algorithm(s) '" + INTER_WORKER_VERIFICATION_ALGORITHMS_DEFAULT + "' will be used as a default on JVMs that provide them; "
224
224
+ "on other JVMs, no default is used and a value for this property must be manually specified in the worker config." ;
225
225
private final Crypto crypto ;
@@ -490,10 +490,10 @@ private static ConfigDef config(Crypto crypto) {
490
490
SCHEDULED_REBALANCE_MAX_DELAY_MS_DOC )
491
491
.define (INTER_WORKER_KEY_TTL_MS_CONFIG ,
492
492
ConfigDef .Type .INT ,
493
- INTER_WORKER_KEY_TTL_MS_MS_DEFAULT ,
493
+ INTER_WORKER_KEY_TTL_MS_DEFAULT ,
494
494
between (0 , Integer .MAX_VALUE ),
495
495
ConfigDef .Importance .LOW ,
496
- INTER_WORKER_KEY_TTL_MS_MS_DOC )
496
+ INTER_WORKER_KEY_TTL_MS_DOC )
497
497
.define (INTER_WORKER_KEY_GENERATION_ALGORITHM_CONFIG ,
498
498
ConfigDef .Type .STRING ,
499
499
defaultKeyGenerationAlgorithm (crypto ),
0 commit comments