com.koushikdutta.async.future
Interface Cancellable

All Known Subinterfaces:
DependentCancellable, DependentFuture<T>, Future<T>
All Known Implementing Classes:
Continuation, SimpleCancellable, SimpleFuture, TransformFuture

public interface Cancellable


Method Summary
 boolean cancel()
          Attempt to cancel this asynchronous operation.
 boolean isCancelled()
          Check whether this asynchronous operation has been cancelled.
 boolean isDone()
          Check whether this asynchronous operation completed successfully.
 

Method Detail

isDone

boolean isDone()
Check whether this asynchronous operation completed successfully.

Returns:

isCancelled

boolean isCancelled()
Check whether this asynchronous operation has been cancelled.

Returns:

cancel

boolean cancel()
Attempt to cancel this asynchronous operation.

Returns:
The return value is whether the operation cancelled successfully.