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 Summary
Modifier and TypeMethodDescriptioninterceptor(GraphQlClientInterceptor... interceptors) Configure interceptors to be invoked before delegating to theGraphQlTransportto perform the request.interceptors(Consumer<List<GraphQlClientInterceptor>> interceptorsConsumer) Customize the list of interceptors.Methods inherited from interface org.springframework.graphql.client.GraphQlClient.BaseBuilder
blockingTimeout, build, documentSource
-
Method Details
-
interceptor
Configure interceptors to be invoked before delegating to theGraphQlTransportto perform the request.- Parameters:
interceptors- the interceptors to add- Returns:
- this builder
-
interceptors
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
-