Merged 'jetty-9.4.x' into 'jetty-10.0.x'.

This commit is contained in:
Simone Bordet 2020-07-02 09:29:03 +02:00
commit 383061a695
1 changed files with 8 additions and 1 deletions

View File

@ -18,6 +18,8 @@
package org.eclipse.jetty.util.thread;
import java.util.concurrent.BlockingQueue;
import org.eclipse.jetty.util.BlockingArrayQueue;
import org.eclipse.jetty.util.annotation.ManagedAttribute;
import org.eclipse.jetty.util.annotation.ManagedObject;
@ -43,7 +45,12 @@ public class MonitoredQueuedThreadPool extends QueuedThreadPool
public MonitoredQueuedThreadPool(int maxThreads)
{
super(maxThreads, maxThreads, 24 * 3600 * 1000, new BlockingArrayQueue<>(maxThreads, 256));
this(maxThreads, maxThreads, 24 * 3600 * 1000, new BlockingArrayQueue<>(maxThreads, 256));
}
public MonitoredQueuedThreadPool(int maxThreads, int minThreads, int idleTimeOut, BlockingQueue<Runnable> queue)
{
super(maxThreads, minThreads, idleTimeOut, queue);
addBean(queueStats);
addBean(queueLatencyStats);
addBean(taskLatencyStats);