rehome some APIs to nb-api

This commit is contained in:
Jonathan Shook
2021-08-10 10:34:15 -05:00
parent c389c8571b
commit 0c8c5571f2
3 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ import java.util.Map;
*/
public abstract class CapabilityHook<T> implements MetricRegistryListener {
private Map<String,T> capables = new HashMap<>();
private final Map<String,T> capables = new HashMap<>();
public abstract void onCapableAdded(String name, T capable);
public abstract void onCapableRemoved(String name, T capable);

View File

@@ -46,5 +46,5 @@ public interface HdrDeltaHistogramAttachment extends HdrDeltaHistogramProvider {
* Attach a metric.
* @return the attached metric, after adding to the mirrors for the metric.
*/
public HdrDeltaHistogramProvider attachHdrDeltaHistogram();
HdrDeltaHistogramProvider attachHdrDeltaHistogram();
}

View File

@@ -28,7 +28,7 @@ public class NicerHistogram extends Histogram implements DeltaSnapshotter, HdrDe
private final DeltaHdrHistogramReservoir hdrDeltaReservoir;
private long cacheExpiryMillis = 0L;
private long cacheTimeMillis = 0L;
private String metricName;
private final String metricName;
private List<Histogram> mirrors;
public NicerHistogram(String metricName, DeltaHdrHistogramReservoir hdrHistogramReservoir) {