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
Runnabletasks to run.AThreadPool.SizedThreadPoolwrapper aroundThreadPoolExecutor.A task (typically either aRunnableorInvocable.Callablethat declares how it will behave when invoked:The behavior of anInvocabletask when it is called.ARunnabledecorated with anInvocable.InvocationType.A task with anInvocable.InvocationType.An abstract partial implementation of TaskAQueuedThreadPoolsubclass 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 ofSchedulerbased 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.Sweepableresource implements this interface to signal to aSweeperor 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 ofThreadPoolinterface that does not pool, but instead usesVirtualThreads.
ScheduledExecutorSchedulerinstead.