helper.destroy();
}
}
private static StatusGauge statusGauge(final String prefix, final ConcurrentMap<Integer, StatusGauge> gauges, final int status) {
final StatusGauge gauge = gauges.get(status);
if (gauge != null) {
return gauge;
}
final StatusGauge newGauge = new StatusGauge(new Role(prefix + "-HTTP-" + Integer.toString(status), Unit.UNARY));
final StatusGauge old = gauges.putIfAbsent(status, newGauge);
if (old != null) {
return old;
}
return newGauge;
}