Package com.linkedin.venice.fastclient
Class BatchGetRetryThresholdResolver
java.lang.Object
com.linkedin.venice.fastclient.BatchGetRetryThresholdResolver
Resolves the effective batch-get long-tail retry threshold for a key count. Precedence: a fixed threshold
(
> 0) wins; otherwise the server-provided policy, unless the local range was set explicitly; otherwise the
local range. Shared by retry execution and latency-adaptive routing so both always agree on the threshold.-
Constructor Summary
ConstructorsConstructorDescriptionBatchGetRetryThresholdResolver(ClientConfig clientConfig, Supplier<MultiKeyLongTailRetryThresholds> serverRetryPolicy) -
Method Summary
-
Constructor Details
-
BatchGetRetryThresholdResolver
public BatchGetRetryThresholdResolver(ClientConfig clientConfig, Supplier<MultiKeyLongTailRetryThresholds> serverRetryPolicy)
-
-
Method Details
-
getThresholdInMicroSeconds
public int getThresholdInMicroSeconds(int numKeys)
-