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 TypeMethodDescriptionvoid
enqueue
(IncrementalCall<? extends IncrementalPayload> incrementalCall) void
enqueue
(Collection<IncrementalCall<? extends IncrementalPayload>> calls) boolean
org.reactivestreams.Publisher
<DelayedIncrementalPartialResult> This method will return aPublisher
of deferred results.
-
Constructor Details
-
IncrementalCallState
public IncrementalCallState()
-
-
Method Details
-
enqueue
-
enqueue
-
getIncrementalCallsDetected
public boolean getIncrementalCallsDetected() -
startDeferredCalls
This method will return aPublisher
of deferred results. No field processing will be done until aSubscriber
is attached to this publisher. Once aSubscriber
is attached the deferred field result processing will be started and published as a series of events.- Returns:
- the publisher of deferred results
-