Package org.eclipse.jetty.util.thread
Interface TryExecutor
- All Superinterfaces:
Executor
- All Known Implementing Classes:
ExecutorSizedThreadPool
,ExecutorThreadPool
,MonitoredQueuedThreadPool
,QueuedThreadPool
,ReservedThreadExecutor
,TryExecutor.NoTryExecutor
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 -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TryExecutor
asTryExecutor
(Executor executor) Deprecated.default void
Deprecated.boolean
tryExecute
(Runnable task) Deprecated.Attempt to execute a task.
-
Field Details
-
NO_TRY
Deprecated.
-
-
Method Details
-
tryExecute
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
Deprecated. -
asTryExecutor
Deprecated.
-