Package com.codahale.metrics.jvm
Class ThreadStatesGaugeSet
- java.lang.Object
-
- com.codahale.metrics.jvm.ThreadStatesGaugeSet
-
- All Implemented Interfaces:
com.codahale.metrics.Metric
,com.codahale.metrics.MetricSet
- Direct Known Subclasses:
CachedThreadStatesGaugeSet
public class ThreadStatesGaugeSet extends Object implements com.codahale.metrics.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.
-
-
-
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
-
-