@Test public void hasAGaugeForEachThreadState() throws Exception { clock.addSeconds(61); assertThat(((Gauge) gauges.getMetrics().get(NEW_COUNT)).getValue()) .isEqualTo(1); assertThat(((Gauge) gauges.getMetrics().get(RUNNABLE_COUNT)).getValue()) .isEqualTo(1); assertThat(((Gauge) gauges.getMetrics().get(BLOCKED_COUNT)).getValue()) .isEqualTo(1); assertThat(((Gauge) gauges.getMetrics().get(WAITING_COUNT)).getValue()) .isEqualTo(1); assertThat(((Gauge) gauges.getMetrics().get(TIMED_WAITING_COUNT)).getValue()) .isEqualTo(1); assertThat(((Gauge) gauges.getMetrics().get(TERMINATED_COUNT)).getValue()) .isEqualTo(1); }
@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();  }