MINOR: remove unused TimeUnit from MetricConfig

Author: Dong Lin <lindong28@gmail.com>

Reviewers: Ismael Juma, Guozhang Wang

Closes #600 from lindong28/minor
This commit is contained in:
Dong Lin 2016-01-11 18:00:57 -08:00 committed by Guozhang Wang
parent e789a35d3b
commit c9114488b3
1 changed files with 0 additions and 11 deletions

View File

@ -29,7 +29,6 @@ public class MetricConfig {
private int samples;
private long eventWindow;
private long timeWindowMs;
private TimeUnit unit;
private Map<String, String> tags;
public MetricConfig() {
@ -38,7 +37,6 @@ public class MetricConfig {
this.samples = 2;
this.eventWindow = Long.MAX_VALUE;
this.timeWindowMs = TimeUnit.MILLISECONDS.convert(30, TimeUnit.SECONDS);
this.unit = TimeUnit.SECONDS;
this.tags = new LinkedHashMap<>();
}
@ -88,13 +86,4 @@ public class MetricConfig {
this.samples = samples;
return this;
}
public TimeUnit timeUnit() {
return unit;
}
public MetricConfig timeUnit(TimeUnit unit) {
this.unit = unit;
return this;
}
}