FutureState

Stay organized with collections Save and categorize content based on your preferences.
public final enum FutureState

The state of an asynchronous operation.

Inherited Methods

Enum Values

CANCELLED

public static final FutureState CANCELLED

The operation has been cancelled. Any associated callback will never be invoked.

DONE

public static final FutureState DONE

The operation is complete and the result is available. If a callback was associated, it will soon be invoked with the result on the main thread, if it hasn't been invoked already.

PENDING

public static final FutureState PENDING

The operation is still pending. The result of the operation isn't available yet, and any associated callback hasn't yet been dispatched or invoked.

Do not use this to check if the operation can be cancelled as the state can change from another thread between the call to VpsAvailabilityFuture.getState() and VpsAvailabilityFuture.cancel()