| Package | Description |
|---|---|
| org.apache.aries.async.promise | |
| org.osgi.util.promise |
| Modifier and Type | Method and Description |
|---|---|
<R> Promise<R> |
PromiseImpl.flatMap(Function<? super T,Promise<? extends R>> mapper) |
<R> Promise<R> |
PromiseImpl.map(Function<? super T,? extends R> mapper) |
Promise<T> |
PromiseImpl.recover(Function<Promise<?>,? extends T> recovery) |
Promise<T> |
PromiseImpl.recoverWith(Function<Promise<?>,Promise<? extends T>> recovery) |
| Modifier and Type | Method and Description |
|---|---|
<R> Promise<R> |
Promise.flatMap(Function<? super T,Promise<? extends R>> mapper)
FlatMap the value of this Promise.
|
<R> Promise<R> |
Promise.map(Function<? super T,? extends R> mapper)
Map the value of this Promise.
|
Promise<T> |
Promise.recover(Function<Promise<?>,? extends T> recovery)
Recover from a failure of this Promise with a recovery value.
|
Promise<T> |
Promise.recoverWith(Function<Promise<?>,Promise<? extends T>> recovery)
Recover from a failure of this Promise with a recovery Promise.
|
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.