Jetty Util : Common ThreadPool Utilities
Interface Summary Interface Description ExecutionStrategy ExecutionStrategy.ProducerA producer of
Runnabletasks to run.
InvocableA task (typically either a
Callablethat declares how it will behave when invoked:
Scheduler Scheduler.Task SerializedExecutor.ErrorHandlingTaskError handling task Sweeper.Sweepable ThreadPoolA pool for threads. ThreadPool.SizedThreadPoolSpecialized sub-interface of ThreadPool that allows to get/set the minimum and maximum number of threads of the pool. ThreadPoolBudget.Lease TryExecutorA variation of Executor that can confirm if a thread is available immediately
Class Summary Class Description ExecutorSizedThreadPool Deprecated. ExecutorThreadPoolA
LockerConvenience auto closeable
QueuedThreadPoolsubclass that monitors its own activity by recording queue and task statistics.
QueuedThreadPoolA thread pool with a queue of jobs to execute. ReservedThreadExecutorA TryExecutor using pre-allocated/reserved threads from an external Executor. ScheduledExecutorSchedulerImplementation of
Schedulerbased on JDK's
SerializedExecutorAn executor than ensurers serial execution of submitted tasks. ShutdownThreadShutdownThread 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 Machine SweeperA utility class to perform periodic sweeping of resources. ThreadClassLoaderScope ThreadPoolBudgetA budget of required thread usage, used to warn or error for insufficient configured threads. TimerSchedulerA scheduler based on the the JVM Timer class TryExecutor.NoTryExecutor
Enum Summary Enum Description Invocable.InvocationType