Interface GraphQlClient.BaseBuilder<B extends GraphQlClient.BaseBuilder<B>>
- Type Parameters:
B
- the type of builder
- All Known Subinterfaces:
GraphQlClient.Builder<B>
,GraphQlClient.SyncBuilder<B>
,HttpGraphQlClient.Builder<B>
,HttpSyncGraphQlClient.Builder<B>
,RSocketGraphQlClient.Builder<B>
,WebGraphQlClient.Builder<B>
,WebSocketGraphQlClient.Builder<B>
- All Known Implementing Classes:
AbstractGraphQlClientBuilder
,AbstractGraphQlClientSyncBuilder
- Enclosing interface:
- GraphQlClient
public static interface GraphQlClient.BaseBuilder<B extends GraphQlClient.BaseBuilder<B>>
Base builder for creating and initializing a
GraphQlClient
.-
Method Summary
Modifier and TypeMethodDescriptionblockingTimeout
(Duration blockingTimeout) Configure a timeout to use for blocking execution.build()
Build theGraphQlClient
instance.documentSource
(DocumentSource contentLoader) Configure aDocumentSource
strategy to resolve a document by name.
-
Method Details
-
documentSource
Configure aDocumentSource
strategy to resolve a document by name. For use withinGraphQlClient.documentName(String)
.By default, this is set to
ResourceDocumentSource
with classpath location"graphql-documents/"
andResourceDocumentSource.FILE_EXTENSIONS
as extensions.- Parameters:
contentLoader
- the strategy for resolving documents by their names
-
blockingTimeout
Configure a timeout to use for blocking execution.By default this is not set, in which case the behavior depends on connection and request timeout settings of the underlying transport. We recommend configuring timeout values directly if possible on the underlying transport library such an HTTP client library as that can provide more control over such settings.
- Parameters:
blockingTimeout
- the timeout to use
-
build
GraphQlClient build()Build theGraphQlClient
instance.
-