VpsAvailabilityFuture

  • VpsAvailabilityFuture is a handle to an async operation launched by Session.checkVpsAvailabilityAsync.

  • Public methods include cancel(), getResult(), and getState().

  • cancel() attempts to cancel the operation and returns true if successful.

  • getResult() returns the result of the async operation, valid only when the state is DONE.

  • getState() returns the current state of the future operation.

public class VpsAvailabilityFuture

Handle to an async operation launched by Session.checkVpsAvailabilityAsync(double, double, Consumer).

Public Methods

boolean
cancel()
Tries to cancel the execution of this operation.
VpsAvailability
getResult()
Returns the result of the async operation.
FutureState
getState()
Get the current state of the future.

Inherited Methods

Public Methods

cancel

public boolean cancel()

Tries to cancel the execution of this operation. If the operation was cancelled by this invocation, this method returns true and the associated callback (if any) will never be invoked.

getResult

public VpsAvailability getResult()

Returns the result of the async operation. The returned result is only valid when getState() returns FutureState.DONE.

getState

public FutureState getState()

Get the current state of the future.