public static class TectonClient.Builder
extends java.lang.Object
TectonClient object with specific
configurations| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
TectonClient.Builder |
apiKey(java.lang.String apiKey)
Setter for apiKey
|
TectonClient |
build()
Build a
TectonClient object from the Builder |
TectonClient.Builder |
httpClient(okhttp3.OkHttpClient httpClient)
Setter for httpClient
|
TectonClient.Builder |
tectonClientOptions(TectonClientOptions tectonClientOptions)
Setter for tectonClientOptions
|
TectonClient.Builder |
url(java.lang.String url)
Setter for url
|
public TectonClient.Builder url(java.lang.String url)
url - The Tecton Base Urlpublic TectonClient.Builder apiKey(java.lang.String apiKey)
apiKey - API Key for authenticating with the FeatureService API. See Authenticating
with an API key for more informationpublic TectonClient.Builder tectonClientOptions(TectonClientOptions tectonClientOptions)
tectonClientOptions - A TectonClientOptions object with custom configurationspublic TectonClient.Builder httpClient(okhttp3.OkHttpClient httpClient)
httpClient - An OkHttpClient for making requests and receiving responses from the
Feature Service API. Please refer to OkHttp
Documentation for recommendations on creating and maintaining an OkHttp Client in
your application. Tecton recommends configuring the ConnectionPool
in the OkHttpClient for efficiently managing HTTP connections. If you intend to use the
GetFeaturesBatchRequest to send parallel requests to Tecton, please also
configure the maxRequestsPerHost
in the client's Dispatcher.public TectonClient build()
TectonClient object from the BuilderTectonClient