Promises.
These methods return Promises which use the default callback executor and
default scheduled executor. See PromiseFactory for similar methods
which use executors other than the default executors.
PromiseFactory
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < The value type of the List value associated with the returned
Promise. T, A subtype of the value type of the List value associated with
the returned Promise. S extends T> Promise | Returns: A Promise which uses the default callback executor and default scheduled executor that is resolved only when all the specified Promises are resolved. The returned Promise must be successfully resolved with a List of the values in the order of the specified Promises if all the specified Promises are successfully resolved. The List in the returned Promise is the property of the caller and is modifiable. The returned Promise must be resolved with a failure ofFailedPromisesException if any of the
specified Promises are resolved with a failure. The failure
FailedPromisesException must contain all of the specified
Promises which resolved with a failure.The Promises which must be resolved before the returned
Promise must be resolved. Must not be promises)null and all of
the elements in the collection must not be null.Returns a new Promise that is a latch on the resolution of the specified Promises. |
| public static < The value type associated with the specified Promises. T> Promise | Returns: A Promise which uses the default callback executor and scheduled executor that is resolved only when all the specified Promises are resolved. The returned Promise must be successfully resolved with a List of the values in the order of the specified Promises if all the specified Promises are successfully resolved. The List in the returned Promise is the property of the caller and is modifiable. The returned Promise must be resolved with a failure ofFailedPromisesException if any of the specified
Promises are resolved with a failure. The failure
FailedPromisesException must contain all of the specified
Promises which resolved with a failure.The Promises which must be resolved before the returned
Promise must be resolved. Must not be promises)null and all of
the arguments must not be null.Returns a new Promise that is a latch on the resolution of the specified Promises. |
| public static < The value type associated with the returned Promise. T> Promise | |
| public static < The value type associated with the returned Promise. T> Promise | Returns: A new Promise which uses the default callback executor and default scheduled executor that has been resolved with the specified value.The value of the resolved Promise. value)Returns a new Promise that has been resolved with the specified value. |
| Promises | back to summary |
|---|---|
| private Promises() | |
| all | back to summary |
|---|---|
| public static <T, S extends T> Promise Returns a new Promise that is a latch on the resolution of the specified Promises. The returned Promise acts as a gate and must be resolved after all of the specified Promises are resolved.
| |
| all | back to summary |
|---|---|
| public static <T> Promise Returns a new Promise that is a latch on the resolution of the specified Promises. The new Promise acts as a gate and must be resolved after all of the specified Promises are resolved.
| |
| failed | back to summary |
|---|---|
| public static <T> Promise Returns a new Promise that has been resolved with the specified failure.
| |
| resolved | back to summary |
|---|---|
| public static <T> Promise Returns a new Promise that has been resolved with the specified value.
| |