Class CompletionStageMappingOrderedPublisher<D,​U>

  • Type Parameters:
    D - the downstream type
    U - the upstream type to be mapped to
    All Implemented Interfaces:
    org.reactivestreams.Publisher<D>

    public class CompletionStageMappingOrderedPublisher<D,​U>
    extends CompletionStageMappingPublisher<D,​U>
    A reactive Publisher that bridges over another Publisher of `D` and maps the results to type `U` via a CompletionStage, handling errors in that stage but keeps the results in order of downstream publishing. This means it must queue unfinished completion stages in memory in arrival order.
    • Constructor Detail

      • CompletionStageMappingOrderedPublisher

        public CompletionStageMappingOrderedPublisher​(org.reactivestreams.Publisher<U> upstreamPublisher,
                                                      java.util.function.Function<U,​java.util.concurrent.CompletionStage<D>> mapper)
        You need the following :
        Parameters:
        upstreamPublisher - an upstream source of data
        mapper - a mapper function that turns upstream data into a promise of mapped D downstream data
    • Method Detail