Class IncrementalCallState

java.lang.Object
graphql.execution.incremental.IncrementalCallState

public class IncrementalCallState extends Object
This provides support for @defer directives on fields that mean that results will be sent AFTER the main result is sent via a Publisher stream.
  • Constructor Details

    • IncrementalCallState

      public IncrementalCallState()
  • Method Details

    • enqueue

      public void enqueue(IncrementalCall<? extends IncrementalPayload> incrementalCall)
    • enqueue

      public void enqueue(Collection<IncrementalCall<? extends IncrementalPayload>> calls)
    • getIncrementalCallsDetected

      public boolean getIncrementalCallsDetected()
    • startDeferredCalls

      public org.reactivestreams.Publisher<DelayedIncrementalPartialResult> startDeferredCalls()
      This method will return a Publisher of deferred results. No field processing will be done until a Subscriber is attached to this publisher. Once a Subscriber is attached the deferred field result processing will be started and published as a series of events.
      Returns:
      the publisher of deferred results