-
public interface PeriodicTask
-
-
Method Summary
Modifier and Type Method Description abstract booleanshouldRunTask()Indicates whether this task should run as part of the ongoing PeriodicWorkService iterationor not. abstract voidrunTask()Runs only if shouldRunTask returs true. abstract booleanisTaskFinished()Indicates whether this task needs to keep running in future iterations or not. -
-
Method Detail
-
shouldRunTask
abstract boolean shouldRunTask()
Indicates whether this task should run as part of the ongoing PeriodicWorkService iterationor not.
-
runTask
abstract void runTask()
Runs only if shouldRunTask returs true.
-
isTaskFinished
abstract boolean isTaskFinished()
Indicates whether this task needs to keep running in future iterations or not.
-
-
-
-