public synchronized GoTimer buildTimer() {
String name = generateName("timing");
GoTimer timer = getExistingTimer(name);
if (timer == null) {
timer = new GoTimer(name);
Map<String, Metric> map = new HashMap<>(1);
map.put(name, timer);
MetricSet set = () -> map;
try {
registry.registerAll(set);
} catch (Exception ex) {
//I haven't figured out a good solution around this...
}
}
return timer;
}
MetricBuilder.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:ja-micro
作者:
评论列表
文章目录