Package graphql.execution.incremental
Class IncrementalCallState
java.lang.Object
graphql.execution.incremental.IncrementalCallState
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenqueue(IncrementalCall<? extends IncrementalPayload> incrementalCall) voidenqueue(Collection<IncrementalCall<? extends IncrementalPayload>> calls) booleanorg.reactivestreams.Publisher<DelayedIncrementalPartialResult> This method will return aPublisherof deferred results.
-
Constructor Details
-
IncrementalCallState
public IncrementalCallState()
-
-
Method Details
-
enqueue
-
enqueue
-
getIncrementalCallsDetected
public boolean getIncrementalCallsDetected() -
startDeferredCalls
This method will return aPublisherof deferred results. No field processing will be done until aSubscriberis attached to this publisher. Once aSubscriberis attached the deferred field result processing will be started and published as a series of events.- Returns:
- the publisher of deferred results
-