Package org.eclipse.jetty.util.thread
Interface TryExecutor
-
- All Superinterfaces:
java.util.concurrent.Executor
- All Known Implementing Classes:
ExecutorSizedThreadPool
,ExecutorThreadPool
,MonitoredQueuedThreadPool
,QueuedThreadPool
,ReservedThreadExecutor
,TryExecutor.NoTryExecutor
@Deprecated(since="2021-05-27") public interface TryExecutor extends java.util.concurrent.Executor
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.A variation of Executor that can confirm if a thread is available immediately
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TryExecutor.NoTryExecutor
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description static TryExecutor
NO_TRY
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description static TryExecutor
asTryExecutor(java.util.concurrent.Executor executor)
Deprecated.default void
execute(java.lang.Runnable task)
Deprecated.boolean
tryExecute(java.lang.Runnable task)
Deprecated.Attempt to execute a task.
-
-
-
Field Detail
-
NO_TRY
static final TryExecutor NO_TRY
Deprecated.
-
-
Method Detail
-
tryExecute
boolean tryExecute(java.lang.Runnable task)
Deprecated.Attempt to execute a task.- Parameters:
task
- The task to be executed- Returns:
- True IFF the task has been given directly to a thread to execute. The task cannot be queued pending the later availability of a Thread.
-
execute
default void execute(java.lang.Runnable task)
Deprecated.- Specified by:
execute
in interfacejava.util.concurrent.Executor
-
asTryExecutor
static TryExecutor asTryExecutor(java.util.concurrent.Executor executor)
Deprecated.
-
-