Interface GraphQlClient.RetrieveSubscriptionSpec
- Enclosing interface:
- GraphQlClient
public static interface GraphQlClient.RetrieveSubscriptionSpec
Declares options to decode a field in each response of a subscription.
-
Method Summary
Modifier and TypeMethodDescription<D> reactor.core.publisher.Flux<D>Decode the field to an entity of the given type.<D> reactor.core.publisher.Flux<D>toEntity(ParameterizedTypeReference<D> entityType) Variant oftoEntity(Class)with aParameterizedTypeReference.<D> reactor.core.publisher.Flux<List<D>>toEntityList(Class<D> elementType) Variant oftoEntity(Class)to decode each response to a List of entities.<D> reactor.core.publisher.Flux<List<D>>toEntityList(ParameterizedTypeReference<D> elementType) Variant oftoEntity(Class)to decode each response to a List of entities.
-
Method Details
-
toEntity
Decode the field to an entity of the given type.- Type Parameters:
D- the entity type- Parameters:
entityType- the type to convert to- Returns:
Monowith the decoded entity; completes withFieldAccessExceptionin case offield errorsor aninvalidresponse; completes empty if the field isnullbut has no errors.- See Also:
-
toEntity
Variant oftoEntity(Class)with aParameterizedTypeReference.- Type Parameters:
D- the entity type- Parameters:
entityType- the type to convert to
-
toEntityList
Variant oftoEntity(Class)to decode each response to a List of entities.- Type Parameters:
D- the entity type- Parameters:
elementType- the type of elements in the list
-
toEntityList
Variant oftoEntity(Class)to decode each response to a List of entities.- Type Parameters:
D- the entity type- Parameters:
elementType- the type of elements in the list
-