public class PercentileSpeculativeRetryPolicy extends java.lang.Object implements SpeculativeRetryPolicy
SpeculativeRetryPolicy.Kind| Modifier and Type | Field and Description |
|---|---|
static PercentileSpeculativeRetryPolicy |
NINETY_NINE_P |
| Constructor and Description |
|---|
PercentileSpeculativeRetryPolicy(double percentile) |
| Modifier and Type | Method and Description |
|---|---|
long |
calculateThreshold(com.codahale.metrics.Snapshot latency,
long existingValue) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
SpeculativeRetryPolicy.Kind |
kind() |
java.lang.String |
toString() |
public static final PercentileSpeculativeRetryPolicy NINETY_NINE_P
public PercentileSpeculativeRetryPolicy(double percentile)
public long calculateThreshold(com.codahale.metrics.Snapshot latency,
long existingValue)
calculateThreshold in interface SpeculativeRetryPolicypublic SpeculativeRetryPolicy.Kind kind()
kind in interface SpeculativeRetryPolicypublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2022 The Apache Software Foundation