Package csw.time.scheduler.api
Interface Cancellable
public interface Cancellable
API for a scheduled periodic task, that allows it to be cancelled.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
cancel()
Cancels this Cancellable and returns true if that was successful.
-
Method Details
-
cancel
boolean cancel()Cancels this Cancellable and returns true if that was successful. If this cancellable was (concurrently) cancelled already, then this method will return false.- Returns:
- whether or not the cancellable was cancelled successfully
-