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 Summary
Modifier and TypeMethodDescriptioninterceptor
(SyncGraphQlClientInterceptor... interceptors) Configure interceptors to be invoked before delegating to theSyncGraphQlTransport
to 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.BaseBuilder
blockingTimeout, build, documentSource
-
Method Details
-
interceptor
Configure interceptors to be invoked before delegating to theSyncGraphQlTransport
to 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
-
scheduler
The 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
-