Interface SpeculativeRetryPolicy
- All Known Implementing Classes:
AlwaysSpeculativeRetryPolicy,FixedSpeculativeRetryPolicy,HybridSpeculativeRetryPolicy,NeverSpeculativeRetryPolicy,PercentileSpeculativeRetryPolicy
public interface SpeculativeRetryPolicy
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionlongcalculateThreshold(SnapshottingTimer latency, long existingValue) Calculate the delay in microseconds after which speculation takes placestatic SpeculativeRetryPolicyfromString(String str) kind()
-
Method Details
-
calculateThreshold
Calculate the delay in microseconds after which speculation takes place- Parameters:
latency- snapshot of coordinator latencies (in microseconds)existingValue- existing speculation threshold (in microseconds)- Returns:
- speculation delay (in microseconds).
-
kind
SpeculativeRetryPolicy.Kind kind() -
fromString
-