public class NeverSpeculativeRetryPolicy extends java.lang.Object implements SpeculativeRetryPolicy
SpeculativeRetryPolicy.Kind
Modifier and Type | Field and Description |
---|---|
static NeverSpeculativeRetryPolicy |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
long |
calculateThreshold(SnapshottingTimer latency,
long existingValue)
Calculate the delay in microseconds after which speculation takes place
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
SpeculativeRetryPolicy.Kind |
kind() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
fromString
public static final NeverSpeculativeRetryPolicy INSTANCE
public long calculateThreshold(SnapshottingTimer latency, long existingValue)
SpeculativeRetryPolicy
calculateThreshold
in interface SpeculativeRetryPolicy
latency
- snapshot of coordinator latencies (in microseconds)existingValue
- existing speculation threshold (in microseconds)public SpeculativeRetryPolicy.Kind kind()
kind
in interface SpeculativeRetryPolicy
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009-2022 The Apache Software Foundation