This commit is contained in:
Phillip Webb
2019-05-30 09:52:05 -07:00
parent 23a923d189
commit 68aec8b6ee
21 changed files with 76 additions and 47 deletions

View File

@@ -54,14 +54,6 @@ public final class Autotime {
? percentiles.stream().mapToDouble(Double::doubleValue).toArray() : null;
}
/**
* Create an instance that disable auto-timed requests.
* @return an instance that disable auto-timed requests
*/
public static Autotime disabled() {
return new Autotime(false, false, null);
}
public boolean isEnabled() {
return this.enabled;
}
@@ -86,4 +78,12 @@ public final class Autotime {
this.percentiles = percentiles;
}
/**
* Create an instance that disable auto-timed requests.
* @return an instance that disable auto-timed requests
*/
public static Autotime disabled() {
return new Autotime(false, false, null);
}
}