Interface DirectExecutor
- All Superinterfaces:
Executor
- All Known Subinterfaces:
DirectExecutorService
A direct executor. Such an executor is required to run the given task in the current thread rather than
delegate to a thread pool; furthermore, the task is guaranteed to be terminated when the call to the
execute(Runnable) method returns.- See Also:
-
Method Summary
-
Method Details
-
execute
Executes the given command in the calling thread.- Specified by:
executein interfaceExecutor- Parameters:
command- the runnable task- Throws:
RejectedExecutionException- if this task cannot be accepted for executionNullPointerException- if command is null
-