Package graphql.execution.incremental
Class IncrementalCallState
- java.lang.Object
-
- graphql.execution.incremental.IncrementalCallState
-
public class IncrementalCallState extends java.lang.ObjectThis 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 Constructor Description IncrementalCallState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenqueue(IncrementalCall<? extends IncrementalPayload> incrementalCall)voidenqueue(java.util.Collection<IncrementalCall<? extends IncrementalPayload>> calls)booleangetIncrementalCallsDetected()org.reactivestreams.Publisher<DelayedIncrementalPartialResult>startDeferredCalls()This method will return aPublisherof deferred results.
-
-
-
Method Detail
-
enqueue
public void enqueue(IncrementalCall<? extends IncrementalPayload> incrementalCall)
-
enqueue
public void enqueue(java.util.Collection<IncrementalCall<? extends IncrementalPayload>> calls)
-
getIncrementalCallsDetected
public boolean getIncrementalCallsDetected()
-
startDeferredCalls
public org.reactivestreams.Publisher<DelayedIncrementalPartialResult> 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
-
-