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 | Field and Description |
---|---|
static ICancellable |
DUMB |
Modifier and Type | Method and Description |
---|---|
java.lang.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. |
static final ICancellable DUMB
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
java.lang.Object getID()
Used to cancel only a group of downloads tasks with the same identifier.