# Interface StartableRunnable

All Superinterfaces:
  `Runnable`

All Known Implementing Classes:
  `ParallelRunnable`

public interface StartableRunnable extends Runnable
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 Type
  Method
  Description
  `boolean`
  `isWorkToBeStarted()`
  Returns if there is work left.
  `default void`
  `submitted()`
  Callback indicating that this task is being submitted to the ExecutorService.

  ### Methods inherited from interface Runnable

  `run`

- ## 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.