Package org.eclipse.jetty.util.thread
Interface TryExecutor
- All Superinterfaces:
Executor
- All Known Implementing Classes:
DelegatingThreadPool
,ExecutorThreadPool
,MonitoredQueuedThreadPool
,QueuedThreadPool
,ReservedThreadExecutor
,TryExecutor.NoTryExecutor
,VirtualThreadPool
A variation of Executor that can confirm if a thread is available immediately
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TryExecutor
asTryExecutor
(Executor executor) default void
boolean
tryExecute
(Runnable task) Attempt to execute a task.
-
Field Details
-
NO_TRY
-
-
Method Details