Class PercentileSpeculativeRetryPolicy
java.lang.Object
org.apache.cassandra.service.reads.PercentileSpeculativeRetryPolicy
- All Implemented Interfaces:
SpeculativeRetryPolicy
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.service.reads.SpeculativeRetryPolicy
SpeculativeRetryPolicy.Kind -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcalculateThreshold(com.codahale.metrics.Snapshot snapshot, long existingValue) longcalculateThreshold(SnapshottingTimer latency, long existingValue) Calculate the delay in microseconds after which speculation takes placebooleaninthashCode()kind()toString()
-
Field Details
-
NINETY_NINE_P
-
-
Constructor Details
-
PercentileSpeculativeRetryPolicy
public PercentileSpeculativeRetryPolicy(double percentile)
-
-
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).
-
calculateThreshold
public long calculateThreshold(com.codahale.metrics.Snapshot snapshot, long existingValue) -
kind
- Specified by:
kindin interfaceSpeculativeRetryPolicy
-
equals
-
hashCode
public int hashCode() -
toString
-