Interface RSocketGraphQlClient
- All Superinterfaces:
- GraphQlClient
GraphQL over RSocket client that uses 
RSocketRequester.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for the GraphQL over HTTP client.Nested classes/interfaces inherited from interface org.springframework.graphql.client.GraphQlClientGraphQlClient.BaseBuilder<B extends GraphQlClient.BaseBuilder<B>>, GraphQlClient.RequestSpec, GraphQlClient.RetrieveSpec, GraphQlClient.RetrieveSubscriptionSpec, GraphQlClient.RetrieveSyncSpec, GraphQlClient.SyncBuilder<B extends GraphQlClient.SyncBuilder<B>>
- 
Method SummaryModifier and TypeMethodDescriptionstatic RSocketGraphQlClient.Builder<?> builder()Start with a newRSocketRequester.Buildercustomized for GraphQL, setting thedataMimeTypeto"application/graphql+json"and adding JSON codecs.static RSocketGraphQlClient.Builder<?> builder(RSocketRequester.Builder requesterBuilder) Start with a givenbuilder().mutate()Return a builder initialized from the configuration of "this" client to use to build a new, independently configured client instance.reactor.core.publisher.Mono<Void> start()Start the RSocket session.reactor.core.publisher.Mono<Void> stop()Stop the RSocket session.Methods inherited from interface org.springframework.graphql.client.GraphQlClientdocument, documentName
- 
Method Details- 
startreactor.core.publisher.Mono<Void> start()Start the RSocket session.- Returns:
- Monothat completes when the underlying session is started
 
- 
stopreactor.core.publisher.Mono<Void> stop()Stop the RSocket session.- Returns:
- Monothat completes when the underlying session is stopped.- Note that currently this method calls - Disposable.dispose()which is not differed and does not wait, i.e. it triggers stopping immediately and returns immediately. See rsocket-java#1048
 
- 
mutateRSocketGraphQlClient.Builder<?> mutate()Description copied from interface:GraphQlClientReturn a builder initialized from the configuration of "this" client to use to build a new, independently configured client instance.- Specified by:
- mutatein interface- GraphQlClient
 
- 
builderStart with a newRSocketRequester.Buildercustomized for GraphQL, setting thedataMimeTypeto"application/graphql+json"and adding JSON codecs.
- 
builderStart with a givenbuilder().- Parameters:
- requesterBuilder- the existing request builder
 
 
-