Package graphql.incremental
Class DelayedIncrementalPartialResultImpl
- java.lang.Object
-
- graphql.incremental.DelayedIncrementalPartialResultImpl
-
- All Implemented Interfaces:
DelayedIncrementalPartialResult
@ExperimentalApi public class DelayedIncrementalPartialResultImpl extends java.lang.Object implements DelayedIncrementalPartialResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDelayedIncrementalPartialResultImpl.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.Object,java.lang.Object>getExtensions()java.util.List<IncrementalPayload>getIncremental()booleanhasNext()Indicates whether the stream will continue emittingDelayedIncrementalPartialResults after this one.static DelayedIncrementalPartialResultImpl.BuildernewIncrementalExecutionResult()java.util.Map<java.lang.String,java.lang.Object>toSpecification()
-
-
-
Method Detail
-
getIncremental
public java.util.List<IncrementalPayload> 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
public java.util.Map<java.lang.Object,java.lang.Object> getExtensions()
- Specified by:
getExtensionsin interfaceDelayedIncrementalPartialResult- Returns:
- a map of extensions or null if there are none
-
toSpecification
public java.util.Map<java.lang.String,java.lang.Object> toSpecification()
- Specified by:
toSpecificationin interfaceDelayedIncrementalPartialResult- Returns:
- a map of the result that strictly follows the spec
-
newIncrementalExecutionResult
public static DelayedIncrementalPartialResultImpl.Builder newIncrementalExecutionResult()
- Returns:
- a
DelayedIncrementalPartialResultImpl.Builderthat can be used to create an instance ofDelayedIncrementalPartialResultImpl
-
-