Interface ScheduledTask
public interface ScheduledTask
Handle for a repeating task; cancel it when it is no longer needed.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels future executions.booleanWhether this task was cancelled.
-
Method Details
-
cancel
void cancel()Cancels future executions. Already-running executions are unaffected. -
isCancelled
boolean isCancelled()Whether this task was cancelled.
-