Package org.eclipse.jetty.util.thread
Jetty Util : Common ThreadPool Utilities
-
Interface Summary Interface Description ExecutionStrategy ExecutionStrategy.Producer A producer ofRunnable
tasks to run.Invocable A task (typically either aRunnable
orCallable
that declares how it will behave when invoked:Scheduler Scheduler.Task SerializedExecutor.ErrorHandlingTask Error handling taskSweeper.Sweepable ASweeper.Sweepable
resource implements this interface to signal to aSweeper
or to a parent container if it needs to be swept or not.ThreadPool A pool for threads.ThreadPool.SizedThreadPool Specialized sub-interface of ThreadPool that allows to get/set the minimum and maximum number of threads of the pool.ThreadPoolBudget.Lease TryExecutor A variation of Executor that can confirm if a thread is available immediately -
Class Summary Class Description ExecutorSizedThreadPool Deprecated. ExecutorThreadPool AThreadPool.SizedThreadPool
wrapper aroundThreadPoolExecutor
.Locker Convenience auto closeableReentrantLock
wrapper.MonitoredQueuedThreadPool AQueuedThreadPool
subclass that monitors its own activity by recording queue and task statistics.QueuedThreadPool ReservedThreadExecutor An Executor using preallocated/reserved Threads from a wrapped Executor.ScheduledExecutorScheduler Implementation ofScheduler
based on JDK'sScheduledThreadPoolExecutor
.SerializedExecutor An executor than ensurers serial execution of submitted tasks.ShutdownThread 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 MachineSweeper A utility class to perform periodic sweeping of resources.ThreadClassLoaderScope ThreadPoolBudget A budget of required thread usage, used to warn or error for insufficient configured threads.TimerScheduler A scheduler based on the the JVM Timer classTryExecutor.NoTryExecutor -
Enum Summary Enum Description Invocable.InvocationType