public class ProportionalZoneFailureDetector extends AbstractZoneFailureDetector
AbstractZoneFailureDetector.ZoneHistory
Constructor and Description |
---|
ProportionalZoneFailureDetector(int minDatapoints,
Duration timeToConsider,
double maxProportionFailures) |
ProportionalZoneFailureDetector(int minDatapoints,
Duration timeToConsider,
double maxProportionFailures,
com.google.common.base.Ticker ticker) |
hasFailed, onStartupFailure, onStartupSuccess
public ProportionalZoneFailureDetector(int minDatapoints, Duration timeToConsider, double maxProportionFailures)
minDatapoints
- min number of attempts within the time period, to consider this measure reliabletimeToConsider
- time for recent attempts (discard any attempts older than this)maxProportionFailures
- proportion (between 0 and 1) where numFailures/dataPoints >= this number means failurepublic ProportionalZoneFailureDetector(int minDatapoints, Duration timeToConsider, double maxProportionFailures, com.google.common.base.Ticker ticker)