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
public boolean cancel ()
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.
public VpsAvailability getResult ()
getResult
public VpsAvailability getResult()
Returns the result of the async operation. The returned result is only valid when getState()
returns FutureState.DONE
.
public FutureState getState ()
getState
public FutureState getState()
Get the current state of the future.