VpsAvailabilityFuture

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 Future state.

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 Future state.