@Test public void autoDiscoversTheMXBeans() throws Exception { final ThreadStatesGaugeSet set = new ThreadStatesGaugeSet(); assertThat(((Gauge) set.getMetrics().get(COUNT)).getValue()).isNotNull(); }
@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();  }