Package org.eclipse.jetty.util.thread
package org.eclipse.jetty.util.thread
Jetty Util : Common ThreadPool Utilities
-
ClassDescriptionReentrant lock that can be used in a try-with-resources statement.A reentrant lock with a condition that can be used in a try-with-resources statement.A producer of
Runnable
tasks to run.AThreadPool.SizedThreadPool
wrapper aroundThreadPoolExecutor
.The behavior of anInvocable
when it is invoked.ARunnable
decorated with anInvocable.InvocationType
.A task with anInvocable.InvocationType
.AQueuedThreadPool
subclass that monitors its own activity by recording queue and task statistics.A thread pool with a queue of jobs to execute.A TryExecutor using pre-allocated/reserved threads from an external 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