Package org.apache.tomcat.util.threads
package org.apache.tomcat.util.threads
-
ClassDescriptionStatic constants for this package.Shared latch that allows the latch to be acquired a limited number of times after which all subsequent requests to acquire the latch will be placed in a FIFO queue until one of the shares is returned.Class which wraps a ScheduledExecutorService, while preventing lifecycle and configuration operations.A custom
RuntimeException
thrown by theThreadPoolExecutor
to signal that the thread should be disposed of.As task queue specifically designed to run with a thread pool executor.A Thread implementation that records the time at which it was created.Simple task thread factory to use to create threads for an executor implementation.AnExecutorService
that executes each submitted task using one of possibly several pooled threads, normally configured usingExecutors
factory methods.A handler for rejected tasks that throws aRejectedExecutionException
.A handler for rejected tasks that runs the rejected task directly in the calling thread of theexecute
method, unless the executor has been shut down, in which case the task is discarded.A handler for rejected tasks that discards the oldest unhandled request and then retriesexecute
, unless the executor is shut down, in which case the task is discarded.A handler for rejected tasks that silently discards the rejected task.An executor that uses a new virtual thread for each task.