Class JettyServerThreadPoolMetrics
java.lang.Object
io.micrometer.core.instrument.binder.jetty.JettyServerThreadPoolMetrics
- All Implemented Interfaces:
MeterBinder
public class JettyServerThreadPoolMetrics extends java.lang.Object implements MeterBinder
MeterBinder
for Jetty ThreadPool
.
Pass the ThreadPool
used with the Jetty Server
. For example:
QueuedThreadPool threadPool = new QueuedThreadPool();
Server server = new Server(threadPool);
new JettyServerThreadPoolMetrics(threadPool, tags).bindTo(registry);
- Since:
- 1.1.0
- See Also:
InstrumentedQueuedThreadPool
-
Constructor Summary
Constructors Constructor Description JettyServerThreadPoolMetrics(org.eclipse.jetty.util.thread.ThreadPool threadPool, java.lang.Iterable<Tag> tags)
-
Method Summary
Modifier and Type Method Description void
bindTo(MeterRegistry registry)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JettyServerThreadPoolMetrics
public JettyServerThreadPoolMetrics(org.eclipse.jetty.util.thread.ThreadPool threadPool, java.lang.Iterable<Tag> tags)
-
-
Method Details
-
bindTo
- Specified by:
bindTo
in interfaceMeterBinder
-