Interface GraphQlClient.Builder<B extends GraphQlClient.Builder<B>>

Type Parameters:
B - the type of builder
All Superinterfaces:
GraphQlClient.BaseBuilder<B>
All Known Subinterfaces:
HttpGraphQlClient.Builder<B>, RSocketGraphQlClient.Builder<B>, WebGraphQlClient.Builder<B>, WebSocketGraphQlClient.Builder<B>
All Known Implementing Classes:
AbstractGraphQlClientBuilder
Enclosing interface:
GraphQlClient

public static interface GraphQlClient.Builder<B extends GraphQlClient.Builder<B>> extends GraphQlClient.BaseBuilder<B>
Builder to create a GraphQlClient with a non-blocking execution chain and transport.
  • Method Details

    • interceptor

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

      B interceptors(Consumer<List<GraphQlClientInterceptor>> 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