public class RatioErrorThreshold extends Object implements ErrorThreshold
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkThresholdExceeded(long errorCount,
Number totalItems)
Checks whether the error threshold was exceeded.
|
float |
getMaxErrorRatio() |
long |
getMinSample() |
String |
thresholdAsString()
Returns a textual description of this threshold, mainly for informational purposes, e.g.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforAbsoluteValue, forRatio, unlimitedpublic boolean checkThresholdExceeded(long errorCount,
@NonNull
Number totalItems)
ErrorThresholdcheckThresholdExceeded in interface ErrorThresholderrorCount - the current number of errors encountered.totalItems - the total number of items processed so far.true if the threshold was exceeded, or false otherwise.public String thresholdAsString()
ErrorThresholdthresholdAsString in interface ErrorThresholdpublic float getMaxErrorRatio()
public long getMinSample()
Copyright © 2017–2021 DataStax. All rights reserved.