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>
Modifier and Type | Class and Description |
---|---|
class |
CompletionStageMappingPublisher.CompletionStageSubscriber |
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 |
---|---|
org.reactivestreams.Publisher<U> |
getUpstreamPublisher()
Get instance of an upstreamPublisher
|
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 datapublic void subscribe(org.reactivestreams.Subscriber<? super D> downstreamSubscriber)
subscribe
in interface org.reactivestreams.Publisher<D>
public org.reactivestreams.Publisher<U> getUpstreamPublisher()
Publisher