Interface RunnableManager.BackgroundStage

  • Enclosing class:
    RunnableManager

    public static interface RunnableManager.BackgroundStage
    An optional mix-in interface for a Runnable scheduled on the RunnableManager that should be run in a background thread and which produces a subsequent stage for further execution.
    Since:
    1.21
    • Method Detail

      • getNextStage

        java.lang.Runnable getNextStage()
        Provides the next stage of computation. If the result is another BackgroundStage, then it, too, will run in the background. The final stage is some Runnable that is not a BackgroundStage which then is posted on the display thread to update the UI.
        Returns:
        the next stage of computation/update