- All Superinterfaces:
- All Known Implementing Classes:
public interface TryExecutor extends Executor
A variation of Executor that can confirm if a thread is available immediately
Nested Class SummaryModifier and TypeInterfaceDescription
NO_TRYstatic final TryExecutor NO_TRY
(Runnable task)Attempt to execute a task.
task- The task to be executed
- 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.
executedefault void execute