public class CriticalCauseZoneFailureDetector extends AbstractZoneFailureDetector
AbstractZoneFailureDetector.ZoneHistory
Constructor and Description |
---|
CriticalCauseZoneFailureDetector(Duration timeToConsider,
com.google.common.base.Predicate<? super java.lang.Throwable> criticalityPredicate,
int numTimes) |
hasFailed, onStartupFailure, onStartupSuccess
public CriticalCauseZoneFailureDetector(Duration timeToConsider, com.google.common.base.Predicate<? super java.lang.Throwable> criticalityPredicate, int numTimes)
timeToConsider
- Time for recent attempts (discard any attempts older than this)criticalityPredicate
- What constitutes a critical causenumTimes
- Number of "critical causes" that must happen within the time period, to consider failed