Interface RunnableManager.BackgroundStage
-
- Enclosing class:
- RunnableManager
public static interface RunnableManager.BackgroundStage
An optional mix-in interface for aRunnable
scheduled on theRunnableManager
that should be run in a background thread and which produces a subsequent stage for further execution.- Since:
- 1.21
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Runnable
getNextStage()
Provides the next stage of computation.
-
-
-
Method Detail
-
getNextStage
java.lang.Runnable getNextStage()
Provides the next stage of computation. If the result is anotherBackgroundStage
, then it, too, will run in the background. The final stage is someRunnable
that is not aBackgroundStage
which then is posted on the display thread to update the UI.- Returns:
- the next stage of computation/update
-
-