Class FixedSpeculativeRetryPolicy
java.lang.Object
org.apache.cassandra.service.reads.FixedSpeculativeRetryPolicy
- All Implemented Interfaces:
SpeculativeRetryPolicy
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.service.reads.SpeculativeRetryPolicy
SpeculativeRetryPolicy.Kind -
Method Summary
Modifier and TypeMethodDescriptionlongcalculateThreshold(SnapshottingTimer latency, long existingValue) Calculate the delay in microseconds after which speculation takes placebooleaninthashCode()kind()toString()
-
Method Details
-
calculateThreshold
Description copied from interface:SpeculativeRetryPolicyCalculate the delay in microseconds after which speculation takes place- Specified by:
calculateThresholdin interfaceSpeculativeRetryPolicy- Parameters:
latency- snapshot of coordinator latencies (in microseconds)existingValue- existing speculation threshold (in microseconds)- Returns:
- speculation delay (in microseconds).
-
kind
- Specified by:
kindin interfaceSpeculativeRetryPolicy
-
equals
-
hashCode
public int hashCode() -
toString
-