Package org.eclipse.jetty.util.thread
package org.eclipse.jetty.util.thread
Jetty Util : Common ThreadPool Utilities
-
ClassDescriptionA producer of
Runnable
tasks to run.Deprecated.AThreadPool.SizedThreadPool
wrapper aroundThreadPoolExecutor
.Convenience auto closeableReentrantLock
wrapper.AQueuedThreadPool
subclass that monitors its own activity by recording queue and task statistics.Convenience class to ensure that a new Thread is created inside a privileged block.A thread pool with a queue of jobs to execute.An Executor using preallocated/reserved Threads from a wrapped Executor.Implementation ofScheduler
based on JDK'sScheduledThreadPoolExecutor
.An executor than ensurers serial execution of submitted tasks.Error handling taskShutdownThread is a shutdown hook thread implemented as singleton that maintains a list of lifecycle instances that are registered with it and provides ability to stop these lifecycles upon shutdown of the Java Virtual MachineA utility class to perform periodic sweeping of resources.ASweeper.Sweepable
resource implements this interface to signal to aSweeper
or to a parent container if it needs to be swept or not.A pool for threads.Specialized sub-interface of ThreadPool that allows to get/set the minimum and maximum number of threads of the pool.A budget of required thread usage, used to warn or error for insufficient configured threads.A scheduler based on the the JVM Timer classA variation of Executor that can confirm if a thread is available immediately
ExecutorThreadPool