Package org.eclipse.jetty.util.thread
Jetty Util : Common ThreadPool Utilities
-
Interface Summary Interface Description ExecutionStrategy ExecutionStrategy.Producer A producer ofRunnabletasks to run.Invocable Scheduler Scheduler.Task Sweeper.Sweepable ASweeper.Sweepableresource implements this interface to signal to aSweeperor 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.SizedThreadPoolwrapper aroundThreadPoolExecutor.Locker Convenience auto closeableReentrantLockwrapper.MonitoredQueuedThreadPool AQueuedThreadPoolsubclass 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 ofSchedulerbased on JDK'sScheduledThreadPoolExecutor.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