Package eu.woolplatform.utils.schedule
Interface Job
-
public interface JobThis interface defines a job that can be run on a separate thread and that can be cancelled. It can be posted to aSerialJobRunner.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancel()Called when the job is cancelled.voidrun()Runs the job.
-
-
-
Method Detail
-
run
void run()
Runs the job.
-
cancel
void cancel()
Called when the job is cancelled. This can also be called ifrun()hasn't been called. This method is called on the same thread asSerialJobRunner.cancelJobs().
-
-