Package | Description |
---|---|
org.osgi.util.promise |
Promise Package Version 1.0.
|
Modifier and Type | Field and Description |
---|---|
private Function<? super T,? extends R> |
PromiseImpl.Map.mapper |
private Function<? super T,Promise<? extends R>> |
PromiseImpl.FlatMap.mapper |
private Function<Promise<?>,? extends T> |
PromiseImpl.Recover.recovery |
private Function<Promise<?>,Promise<? extends T>> |
PromiseImpl.RecoverWith.recovery |
Modifier and Type | Method and Description |
---|---|
<R> Promise<R> |
PromiseImpl.flatMap(Function<? super T,Promise<? extends R>> mapper)
FlatMap the value of this Promise.
|
<R> Promise<R> |
Promise.flatMap(Function<? super T,Promise<? extends R>> mapper)
FlatMap the value of this Promise.
|
<R> Promise<R> |
PromiseImpl.map(Function<? super T,? extends R> mapper)
Map the value of this Promise.
|
<R> Promise<R> |
Promise.map(Function<? super T,? extends R> mapper)
Map the value of this Promise.
|
Promise<T> |
PromiseImpl.recover(Function<Promise<?>,? extends T> recovery)
Recover from a failure of this Promise with a recovery value.
|
Promise<T> |
Promise.recover(Function<Promise<?>,? extends T> recovery)
Recover from a failure of this Promise with a recovery value.
|
Promise<T> |
PromiseImpl.recoverWith(Function<Promise<?>,Promise<? extends T>> recovery)
Recover from a failure of this Promise with a recovery Promise.
|
Promise<T> |
Promise.recoverWith(Function<Promise<?>,Promise<? extends T>> recovery)
Recover from a failure of this Promise with a recovery Promise.
|
Constructor and Description |
---|
FlatMap(Function<? super T,Promise<? extends R>> mapper) |
Map(Function<? super T,? extends R> mapper) |
Recover(PromiseImpl<T> chained,
Function<Promise<?>,? extends T> recovery) |
RecoverWith(PromiseImpl<T> chained,
Function<Promise<?>,Promise<? extends T>> recovery) |