Package graphql.incremental
Class StreamPayload
- java.lang.Object
-
- graphql.incremental.IncrementalPayload
-
- graphql.incremental.StreamPayload
-
@ExperimentalApi public class StreamPayload extends IncrementalPayload
Represents a stream payload
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StreamPayload.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> @Nullable java.util.List<T>
getItems()
static StreamPayload.Builder
newStreamedItem()
java.util.Map<java.lang.String,java.lang.Object>
toSpecification()
-
Methods inherited from class graphql.incremental.IncrementalPayload
errorsToSpec, getErrors, getExtensions, getLabel, getPath
-
-
-
-
Method Detail
-
getItems
@Nullable public <T> @Nullable java.util.List<T> getItems()
- Type Parameters:
T
- the type to cast the result to- Returns:
- the resolved list of items
-
toSpecification
public java.util.Map<java.lang.String,java.lang.Object> toSpecification()
- Overrides:
toSpecification
in classIncrementalPayload
- Returns:
- a map of this payload that strictly follows the spec
-
newStreamedItem
public static StreamPayload.Builder newStreamedItem()
- Returns:
- a
StreamPayload.Builder
that can be used to create an instance ofStreamPayload
-
-