Class CompletionStageMappingOrderedPublisher<D,U>

java.lang.Object
graphql.execution.reactive.CompletionStageMappingPublisher<D,U>
graphql.execution.reactive.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 Details

    • CompletionStageMappingOrderedPublisher

      public CompletionStageMappingOrderedPublisher(org.reactivestreams.Publisher<U> upstreamPublisher, Function<U,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 Details