Interface ICancellable


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.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ICancellable
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Used to cancel only a group of downloads tasks with the same identifier.
    boolean
    Returns true if a download or a group of downloads tasks has been canceled.
  • Field Details

  • Method Details

    • isCanceled

      boolean isCanceled()

      Returns true if a download or a group of downloads tasks has been canceled.

      Returns:
      true if a download or a group of downloads tasks has been canceled, otherwise false
    • getID

      Object getID()

      Used to cancel only a group of downloads tasks with the same identifier.

      Returns:
      the identifier