AbstractPromise
An abstract class for Promise
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Attributes
- Definition Classes
-
Promise
Whether this promise is set to be time-out
Whether this promise is set to be time-out
Attributes
- Returns
-
true if it has be set.
- Definition Classes
-
Promise
Returns the cause of the failed operation if the operation has failed.
Returns the cause of the failed operation if the operation has failed.
Attributes
- Returns
-
The cause of the failure, if any. Otherwise None if succeeded.
- Throws
-
IllegalStateException
if this Promise has not completed yet.
- Definition Classes
Returns the cause of the failed operation if the operation has failed.
Returns the cause of the failed operation if the operation has failed.
Attributes
- Returns
-
The cause of the failure, if any.
- Throws
-
IllegalStateException
if this Promise has not completed yet, or if it has been succeeded.
- Definition Classes
Clean the field of this instance.
Return the successful result of this asynchronous operation, if any. If the operation has not yet been completed, then this will throw IllegalStateException . If the operation has been failed with an exception, then this throw cause .
Return the successful result of this asynchronous operation, if any. If the operation has not yet been completed, then this will throw IllegalStateException . If the operation has been failed with an exception, then this throw cause .
Attributes
- Returns
-
the result of this operation, if completed successfully.
- Throws
-
IllegalStateException
if this Future or Promise has not completed yet.
Throwableif the operation has been failed with an exception.
- Definition Classes
Returns true if and only if the operation was completed and failed.
Returns true if and only if the operation was completed and failed.
Attributes
- Definition Classes
Returns true if and only if the operation was completed successfully.
Returns true if and only if the operation was completed successfully.
Attributes
- Definition Classes
Inherited methods
Clean all fields of this instance.
Attributes
- Inherited from:
- Nextable (hidden)
Attributes
- Inherited from:
- Nextable (hidden)
Return the Future instance is associated with this promise. This future will be completed upon completion of this promise.
Return the Future instance is associated with this promise. This future will be completed upon completion of this promise.
Attributes
- Returns
-
A future instance associated with this promise.
- Inherited from:
- Promise (hidden)
Return true if this operation has been completed either Promise.setSuccess successfully, Promise.setFailure unsuccessfully.
Return true if this operation has been completed either Promise.setSuccess successfully, Promise.setFailure unsuccessfully.
Attributes
- Returns
-
true if this operation has completed, otherwise false.
- Inherited from:
- Future
Attributes
- Inherited from:
- Nextable (hidden)
Returns true if and only if the operation was completed and failed with TimeoutException.
Returns true if and only if the operation was completed and failed with TimeoutException.
Attributes
- Inherited from:
- Future
Attributes
- Inherited from:
- Nextable (hidden)
Set the next object of this object.
Set the next object of this object.
Attributes
- Inherited from:
- Nextable (hidden)
true if and only if this object is not in any chain
true if and only if this object is not in any chain
Attributes
- Inherited from:
- Nextable (hidden)
Recycle this instance.
Marks this promise as a failure.
Marks this promise as a failure.
If it is success or failed already it will throw an IllegalStateException.
Attributes
- Inherited from:
- Promise (hidden)
Marks this promise as a success.
Marks this promise as a success.
If it is success or failed already it will throw an IllegalStateException.
Attributes
- Inherited from:
- Promise (hidden)