Interface RSocketGraphQlClient
- All Superinterfaces:
GraphQlClient
GraphQL over RSocket client that uses
RSocketRequester.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for the GraphQL over HTTP client.Nested classes/interfaces inherited from interface org.springframework.graphql.client.GraphQlClient
GraphQlClient.RequestSpec, GraphQlClient.RetrieveSpec, GraphQlClient.RetrieveSubscriptionSpec -
Method Summary
Modifier 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.GraphQlClient
document, documentName
-
Method Details
-
start
reactor.core.publisher.Mono<Void> start()Start the RSocket session.- Returns:
Monothat completes when the underlying session is started
-
stop
reactor.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
-
mutate
RSocketGraphQlClient.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 interfaceGraphQlClient
-
builder
Start with a newRSocketRequester.Buildercustomized for GraphQL, setting thedataMimeTypeto"application/graphql+json"and adding JSON codecs. -
builder
Start with a givenbuilder().- Parameters:
requesterBuilder- the existing request builder
-