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 java.util.Map<java.lang.Object,java.lang.Object>
getExtensions()
java.util.List<IncrementalPayload>
getIncremental()
boolean
hasNext()
Indicates whether the stream will continue emittingDelayedIncrementalPartialResult
s after this one.java.util.Map<java.lang.String,java.lang.Object>
toSpecification()
-
-
-
Method Detail
-
getIncremental
@Nullable java.util.List<IncrementalPayload> getIncremental()
- Returns:
- a list of defer and/or stream payloads.
-
hasNext
boolean hasNext()
Indicates whether the stream will continue emittingDelayedIncrementalPartialResult
s 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 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
-
-