Interface RSocketGraphQlClient

All Superinterfaces:
GraphQlClient

public interface RSocketGraphQlClient extends GraphQlClient
GraphQL over RSocket client that uses RSocketRequester.
Since:
1.0.0
Author:
Rossen Stoyanchev
  • 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

      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 interface GraphQlClient
    • builder

      static RSocketGraphQlClient.Builder<?> builder()
      Start with a new RSocketRequester.Builder customized for GraphQL, setting the dataMimeType to "application/graphql+json" and adding JSON codecs.
    • builder

      static RSocketGraphQlClient.Builder<?> builder(RSocketRequester.Builder requesterBuilder)
      Start with a given builder().
      Parameters:
      requesterBuilder - the existing request builder