
org.rnorth.ducttape.inconsistents.InconsistentResultsException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of duct-tape Show documentation
Show all versions of duct-tape Show documentation
General purpose resilience utilities for Java 8 (circuit breakers, timeouts, rate limiters, and handlers for unreliable or inconsistent results)
The newest version!
package org.rnorth.ducttape.inconsistents;
/**
* Exception caused by a failure to obtain consistent results.
*/
public class InconsistentResultsException extends ResultsNeverConsistentException {
protected final Object mostConsistentValue;
protected final long mostConsistentTime;
public InconsistentResultsException(long timeSinceStart, Object mostConsistentValue, long mostConsistentTime) {
super("After " + timeSinceStart + "ms, results have not become consistent. Most consistent value was " + mostConsistentValue + ", seen for " + mostConsistentTime + "ms", timeSinceStart);
this.mostConsistentValue = mostConsistentValue;
this.mostConsistentTime = mostConsistentTime;
}
public Object getMostConsistentValue() {
return mostConsistentValue;
}
public long getMostConsistentTime() {
return mostConsistentTime;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy