Interface GraphQlClient.SyncBuilder<B extends GraphQlClient.SyncBuilder<B>>

Type Parameters:
B - the type of builder
All Superinterfaces:
GraphQlClient.BaseBuilder<B>
All Known Subinterfaces:
HttpSyncGraphQlClient.Builder<B>
All Known Implementing Classes:
AbstractGraphQlClientSyncBuilder
Enclosing interface:
GraphQlClient

public static interface GraphQlClient.SyncBuilder<B extends GraphQlClient.SyncBuilder<B>> extends GraphQlClient.BaseBuilder<B>
Builder to create a GraphQlClient instance with a synchronous execution chain and transport.
See Also:
  • Method Details

    • interceptor

      B interceptor(SyncGraphQlClientInterceptor... interceptors)
      Configure interceptors to be invoked before delegating to the SyncGraphQlTransport to perform the request.
      Parameters:
      interceptors - the interceptors to add
      Returns:
      this builder
    • interceptors

      B interceptors(Consumer<List<SyncGraphQlClientInterceptor>> interceptorsConsumer)
      Customize the list of interceptors. The provided list is "live", so the consumer can inspect and insert interceptors accordingly.
      Parameters:
      interceptorsConsumer - consumer to customize the interceptors with
      Returns:
      this builder
    • scheduler

      B scheduler(reactor.core.scheduler.Scheduler scheduler)
      The scheduler to use for non-blocking execution with GraphQlClient.RequestSpec.execute() and GraphQlClient.RequestSpec.retrieve(String).

      By default this is set to Schedulers.boundedElastic().

      Parameters:
      scheduler - the scheduler