Interface StartableRunnable
- All Superinterfaces:
Runnable
- All Known Implementing Classes:
ParallelRunnable
Interface for a
Runnable that has a method that tells if the
runnable should still be started.- Since:
- 1.16.0
- Author:
- Mikko Tommila
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if there is work left.default voidCallback indicating that this task is being submitted to the ExecutorService.
-
Method Details
-
isWorkToBeStarted
boolean isWorkToBeStarted()Returns if there is work left.- Returns:
- If the Runnable should still be run.
-
submitted
default void submitted()Callback indicating that this task is being submitted to the ExecutorService.
-