mirror of https://github.com/apache/kafka.git
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:
parent
e789a35d3b
commit
c9114488b3
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue