
org.rnorth.ducttape.inconsistents.ResultsNeverConsistentException 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 ResultsNeverConsistentException extends RuntimeException {
protected final long timeSinceStart;
public ResultsNeverConsistentException(String message, long timeSinceStart) {
super(message);
this.timeSinceStart = timeSinceStart;
}
public ResultsNeverConsistentException(long timeSinceStart) {
super("After " + timeSinceStart + "ms, results have not become consistent. The value was never consistent");
this.timeSinceStart = timeSinceStart;
}
public long getTimeSinceStart() {
return timeSinceStart;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy