Package graphql.incremental
Class DelayedIncrementalPartialResultImpl
java.lang.Object
graphql.incremental.DelayedIncrementalPartialResultImpl
- All Implemented Interfaces:
DelayedIncrementalPartialResult
@ExperimentalApi
public class DelayedIncrementalPartialResultImpl
extends Object
implements DelayedIncrementalPartialResult
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()Indicates whether the stream will continue emittingDelayedIncrementalPartialResults after this one.
-
Method Details
-
getIncremental
- Specified by:
getIncrementalin interfaceDelayedIncrementalPartialResult- Returns:
- a list of defer and/or stream payloads.
-
hasNext
public boolean hasNext()Description copied from interface:DelayedIncrementalPartialResultIndicates 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.
- Specified by:
hasNextin interfaceDelayedIncrementalPartialResult- Returns:
- "true" if there are more responses in the stream, "false" otherwise.
-
getExtensions
- Specified by:
getExtensionsin interfaceDelayedIncrementalPartialResult- Returns:
- a map of extensions or null if there are none
-
toSpecification
- Specified by:
toSpecificationin interfaceDelayedIncrementalPartialResult- Returns:
- a map of the result that strictly follows the spec
-
newIncrementalExecutionResult
- Returns:
- a
DelayedIncrementalPartialResultImpl.Builderthat can be used to create an instance ofDelayedIncrementalPartialResultImpl
-