Class NeverSpeculativeRetryPolicy
- java.lang.Object
-
- org.apache.cassandra.service.reads.NeverSpeculativeRetryPolicy
-
- All Implemented Interfaces:
SpeculativeRetryPolicy
public class NeverSpeculativeRetryPolicy extends java.lang.Object implements SpeculativeRetryPolicy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.service.reads.SpeculativeRetryPolicy
SpeculativeRetryPolicy.Kind
-
-
Field Summary
Fields Modifier and Type Field Description static NeverSpeculativeRetryPolicyINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcalculateThreshold(SnapshottingTimer latency, long existingValue)Calculate the delay in microseconds after which speculation takes placebooleanequals(java.lang.Object obj)inthashCode()SpeculativeRetryPolicy.Kindkind()java.lang.StringtoString()
-
-
-
Field Detail
-
INSTANCE
public static final NeverSpeculativeRetryPolicy INSTANCE
-
-
Method Detail
-
calculateThreshold
public long calculateThreshold(SnapshottingTimer latency, long existingValue)
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
public SpeculativeRetryPolicy.Kind kind()
- Specified by:
kindin interfaceSpeculativeRetryPolicy
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-