Interface WrappingExecutor
- All Superinterfaces:
Executor
An executor which runs a task within the given direct executor.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRun the given task directly, without a wrapper.voidexecute(DirectExecutor directExecutor, Runnable task) Run the given task within the given wrapper.
-
Method Details
-
execute
Run the given task directly, without a wrapper.- Specified by:
executein interfaceExecutor- Parameters:
task- the task to run- Throws:
RejectedExecutionException- if the execution was rejected for some reason
-
execute
Run the given task within the given wrapper.- Parameters:
directExecutor- the task wrappertask- the task to run- Throws:
RejectedExecutionException- if the execution was rejected for some reason
-