Top Description Interfaces Classes
module org.eclipse.jetty.util

Package org.eclipse.jetty.util.thread


Jetty Util : Common ThreadPool Utilities

Interface Summary

Modifier and TypeInterface and Description
public interface
ExecutionStrategy

An ExecutionStrategy executes Runnable tasks produced by a Producer.

public interface
Invocable

A task (typically either a Runnable or Callable that declares how it will behave when invoked:

  • blocking, the invocation will certainly block (e.g. performs blocking I/O)
  • non-blocking, the invocation will certainly not block
  • either, the invocation may block
public interface
public interface
ThreadPool

A pool for threads.

public interface
TryExecutor

A variation of Executor that can confirm if a thread is available immediately

Class Summary

Modifier and TypeClass and Description
public class
AutoLock

Reentrant lock that can be used in a try-with-resources statement.

public class
public class
MonitoredQueuedThreadPool

A QueuedThreadPool subclass that monitors its own activity by recording queue and task statistics.

pack-priv class
PrivilegedThreadFactory

Convenience Thread factory that ensure threads are created without referencing any web application ClassLoader.

public class
QueuedThreadPool

A thread pool with a queue of jobs to execute.

public class
ReservedThreadExecutor

A TryExecutor using pre-allocated/reserved threads from an external Executor.

public class
public class
SerializedExecutor

Ensures serial execution of submitted tasks.

public class
SerializedInvoker

Ensures serial invocation of submitted tasks.

public class
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 Machine

public class
Sweeper

A utility class to perform periodic sweeping of resources.

public class
public class
ThreadPoolBudget

A budget of required thread usage, used to warn or error for insufficient configured threads.

public class
TimerScheduler

A scheduler based on the the JVM Timer class