public interface ICancellable
When a task is accessing to remote data, takes an indeterminate time, and occasionally gets locked. That's the reason a task should support to be cancelable.
ICancellable
interface is designed for getting information about the cancellation of a
task of downloading remote information.
Modifier and Type | Method and Description |
---|---|
Object |
getID()
Used to cancel only a group of downloads tasks with the same identifier.
|
boolean |
isCanceled()
Returns
true if a download or a group of downloads tasks has been canceled. |
boolean isCanceled()
Returns true
if a download or a group of downloads tasks has been canceled.
true
if a download or a group of downloads tasks has been canceled, otherwise false
Object getID()
Used to cancel only a group of downloads tasks with the same identifier.