Package io.dropwizard.metrics5.jvm
Class ThreadStatesGaugeSet
- java.lang.Object
-
- io.dropwizard.metrics5.jvm.ThreadStatesGaugeSet
-
- All Implemented Interfaces:
io.dropwizard.metrics5.Metric
,io.dropwizard.metrics5.MetricSet
- Direct Known Subclasses:
CachedThreadStatesGaugeSet
public class ThreadStatesGaugeSet extends Object implements io.dropwizard.metrics5.MetricSet
A set of gauges for the number of threads in their various states and deadlock detection.
-
-
Constructor Summary
Constructors Constructor Description ThreadStatesGaugeSet()
Creates a new set of gauges using the default MXBeans.ThreadStatesGaugeSet(ThreadMXBean threads, ThreadDeadlockDetector deadlockDetector)
Creates a new set of gauges using the given MXBean and detector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Metric>
getMetrics()
-
-
-
Constructor Detail
-
ThreadStatesGaugeSet
public ThreadStatesGaugeSet()
Creates a new set of gauges using the default MXBeans.
-
ThreadStatesGaugeSet
public ThreadStatesGaugeSet(ThreadMXBean threads, ThreadDeadlockDetector deadlockDetector)
Creates a new set of gauges using the given MXBean and detector.- Parameters:
threads
- a thread MXBeandeadlockDetector
- a deadlock detector
-
-
Method Detail
-
getMetrics
public Map<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Metric> getMetrics()
- Specified by:
getMetrics
in interfaceio.dropwizard.metrics5.MetricSet
-
-