public interface

Cancelable

com.urbanairship.Cancelable
Known Indirect Subclasses

Class Overview

Interface for an cancelable operation.

Summary

Public Methods
abstract boolean cancel(boolean mayInterruptIfRunning)
Cancels the operation.
abstract boolean cancel()
Cancels the operation.
abstract boolean isCancelled()
Determines if the operation is canceled.
abstract boolean isDone()
Determines if the operation is canceled or completed.

Public Methods

public abstract boolean cancel (boolean mayInterruptIfRunning)

Cancels the operation.

Parameters
mayInterruptIfRunning true if the thread executing this task should be interrupted; otherwise, in-progress tasks are allowed to complete.
Returns
  • false if the cancelable was able to be cancelled, otherwise true.

public abstract boolean cancel ()

Cancels the operation.

Returns
  • false if the cancelable was able to be cancelled, otherwise true.

public abstract boolean isCancelled ()

Determines if the operation is canceled.

Returns
  • true if canceled, otherwise false

public abstract boolean isDone ()

Determines if the operation is canceled or completed.

Returns
  • true if canceled or completed, otherwise false