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
.A task (typically either aRunnable
orInvocable.Callable
that declares how it will behave when invoked:The behavior of anInvocable
when it is invoked.ARunnable
decorated with anInvocable.InvocationType
.A task with anInvocable.InvocationType
.An abstract partial implementation of TaskAQueuedThreadPool
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
.Schedules tasks to be executed after a delay.A delayed task that can be cancelled.Ensures serial execution of submitted tasks.Error handling taskEnsures serial invocation of submitted tasks.ShutdownThread 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.ThreadIdPool<E>A fixed sized pool of items that uses ThreadId to avoid contention.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.Deprecated, for removal: This API element is subject to removal in a future version.A variation of Executor that can confirm if a thread is available immediatelyAn implementation ofThreadPool
interface that does not pool, but instead usesVirtualThreads
.
ScheduledExecutorScheduler
instead.