com.urbanairship.Cancelable |
![]() |
Interface for an cancelable operation.
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.
|
Cancels the operation.
mayInterruptIfRunning | true if the thread executing this task should be interrupted; otherwise, in-progress tasks are allowed to complete. |
---|
false
if the cancelable was able to be cancelled, otherwise true
.
Cancels the operation.
false
if the cancelable was able to be cancelled, otherwise true
.
Determines if the operation is canceled.
true
if canceled, otherwise false
Determines if the operation is canceled or completed.
true
if canceled or completed, otherwise false