Package graphql.incremental
Interface DelayedIncrementalPartialResult
-
- All Known Implementing Classes:
DelayedIncrementalPartialResultImpl
@ExperimentalApi public interface DelayedIncrementalPartialResult
Represents a result that is delivered asynchronously, after the initialIncrementalExecutionResult.Multiple defer and/or stream payloads (represented by
IncrementalPayload) can be part of the sameDelayedIncrementalPartialResult
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable java.util.Map<java.lang.Object,java.lang.Object>getExtensions()@Nullable java.util.List<IncrementalPayload>getIncremental()booleanhasNext()Indicates whether the stream will continue emittingDelayedIncrementalPartialResults after this one.java.util.Map<java.lang.String,java.lang.Object>toSpecification()
-
-
-
Method Detail
-
getIncremental
@Nullable @Nullable java.util.List<IncrementalPayload> getIncremental()
- Returns:
- a list of defer and/or stream payloads.
-
hasNext
boolean hasNext()
Indicates whether the stream will continue emittingDelayedIncrementalPartialResults after this one.The value returned by this method should be "true" for all but the last response in the stream. The value of this entry is `false` for the last response of the stream.
- Returns:
- "true" if there are more responses in the stream, "false" otherwise.
-
getExtensions
@Nullable @Nullable java.util.Map<java.lang.Object,java.lang.Object> getExtensions()
- Returns:
- a map of extensions or null if there are none
-
toSpecification
java.util.Map<java.lang.String,java.lang.Object> toSpecification()
- Returns:
- a map of the result that strictly follows the spec
-
-