Interface RSocketGraphQlClient
- All Superinterfaces:
GraphQlClient
GraphQL over RSocket client that uses
RSocketRequester
.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Builder for the GraphQL over HTTP client.Nested classes/interfaces inherited from interface org.springframework.graphql.client.GraphQlClient
GraphQlClient.BaseBuilder<B extends GraphQlClient.BaseBuilder<B>>, GraphQlClient.RequestSpec, GraphQlClient.RetrieveSpec, GraphQlClient.RetrieveSubscriptionSpec, GraphQlClient.RetrieveSyncSpec, GraphQlClient.SyncBuilder<B extends GraphQlClient.SyncBuilder<B>>
-
Method Summary
Modifier and TypeMethodDescriptionstatic RSocketGraphQlClient.Builder<?>
builder()
Start with a newRSocketRequester.Builder
customized for GraphQL, setting thedataMimeType
to"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:
Mono
that completes when the underlying session is started
-
stop
reactor.core.publisher.Mono<Void> stop()Stop the RSocket session.- Returns:
Mono
that 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:GraphQlClient
Return a builder initialized from the configuration of "this" client to use to build a new, independently configured client instance.- Specified by:
mutate
in interfaceGraphQlClient
-
builder
Start with a newRSocketRequester.Builder
customized for GraphQL, setting thedataMimeType
to"application/graphql+json"
and adding JSON codecs. -
builder
Start with a givenbuilder()
.- Parameters:
requesterBuilder
- the existing request builder
-