D - the down stream typeU - the up stream type to be mapped topublic class CompletionStageMappingPublisher<D,U>
extends java.lang.Object
implements org.reactivestreams.Publisher<D>
| Constructor and Description |
|---|
CompletionStageMappingPublisher(org.reactivestreams.Publisher<U> upstreamPublisher,
java.util.function.Function<U,java.util.concurrent.CompletionStage<D>> mapper)
You need the following :
|
| Modifier and Type | Method and Description |
|---|---|
void |
subscribe(org.reactivestreams.Subscriber<? super D> downstreamSubscriber) |
public CompletionStageMappingPublisher(org.reactivestreams.Publisher<U> upstreamPublisher, java.util.function.Function<U,java.util.concurrent.CompletionStage<D>> mapper)
upstreamPublisher - an upstream source of datamapper - a mapper function that turns upstream data into a promise of mapped D downstream data