@Test public void hasAGaugeForTheNumberOfDaemonThreads() throws Exception { clock.addSeconds(61); assertThat(((Gauge) gauges.getMetrics().get(DAEMON_COUNT)).getValue()) .isEqualTo(13); }
@Override public Map<MetricName, Metric> getMetrics() { return Collections.unmodifiableMap(gauges); }
ThreadStatesGaugeSet extends CachedMetricSet { @Override public Map<MetricName, Metric> getMetrics() { return Collections.unmodifiableMap(gauges); } }
ThreadStatesGaugeSet extends CachedMetricSet { @Override public Map<MetricName, Metric> getMetrics() { return Collections.unmodifiableMap(gauges); } ThreadStatesGaugeSet();  ThreadStatesGaugeSet(long dataTTL, TimeUnit unit);  ThreadStatesGaugeSet(ThreadMXBean threads, long dataTTL, TimeUnit unit, Clock clock); }
ThreadStatesGaugeSet extends CachedMetricSet { @Override public Map<MetricName, Metric> getMetrics() { return Collections.unmodifiableMap(gauges); } ThreadStatesGaugeSet();  ThreadStatesGaugeSet(long dataTTL, TimeUnit unit);  ThreadStatesGaugeSet(ThreadMXBean threads, long dataTTL, TimeUnit unit, Clock clock); @Override Map<MetricName, Metric> getMetrics(); }
ThreadStatesGaugeSet extends CachedMetricSet { @Override public Map<MetricName, Metric> getMetrics() { return Collections.unmodifiableMap(gauges); } ThreadStatesGaugeSet();  ThreadStatesGaugeSet(long dataTTL, TimeUnit unit);  ThreadStatesGaugeSet(ThreadMXBean threads, long dataTTL, TimeUnit unit, Clock clock); @Override Map<MetricName, Metric> getMetrics();  }