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 TypeMethodDescriptionboolean
hasNext()
Indicates whether the stream will continue emittingDelayedIncrementalPartialResult
s after this one.
-
Method Details
-
getIncremental
- Specified by:
getIncremental
in interfaceDelayedIncrementalPartialResult
- Returns:
- a list of defer and/or stream payloads.
-
hasNext
public boolean hasNext()Description copied from interface:DelayedIncrementalPartialResult
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.
- Specified by:
hasNext
in interfaceDelayedIncrementalPartialResult
- Returns:
- "true" if there are more responses in the stream, "false" otherwise.
-
getExtensions
- Specified by:
getExtensions
in interfaceDelayedIncrementalPartialResult
- Returns:
- a map of extensions or null if there are none
-
toSpecification
- Specified by:
toSpecification
in interfaceDelayedIncrementalPartialResult
- Returns:
- a map of the result that strictly follows the spec
-
newIncrementalExecutionResult
- Returns:
- a
DelayedIncrementalPartialResultImpl.Builder
that can be used to create an instance ofDelayedIncrementalPartialResultImpl
-