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.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptioninterceptor(SyncGraphQlClientInterceptor... interceptors) Configure interceptors to be invoked before delegating to theSyncGraphQlTransportto perform the request.interceptors(Consumer<List<SyncGraphQlClientInterceptor>> interceptorsConsumer) Customize the list of interceptors.scheduler(reactor.core.scheduler.Scheduler scheduler) The scheduler to use for non-blocking execution withGraphQlClient.RequestSpec.execute()andGraphQlClient.RequestSpec.retrieve(String).Methods inherited from interface org.springframework.graphql.client.GraphQlClient.BaseBuilderblockingTimeout, build, documentSource
- 
Method Details- 
interceptorConfigure interceptors to be invoked before delegating to theSyncGraphQlTransportto perform the request.- Parameters:
- interceptors- the interceptors to add
- Returns:
- this builder
 
- 
interceptorsCustomize 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
 
- 
schedulerThe scheduler to use for non-blocking execution withGraphQlClient.RequestSpec.execute()andGraphQlClient.RequestSpec.retrieve(String).By default this is set to Schedulers.boundedElastic().- Parameters:
- scheduler- the scheduler
 
 
-