Class QDrantHttpClientImpl.Builder
java.lang.Object
io.metaloom.qdrant.client.http.impl.QDrantHttpClientImpl.Builder
- Enclosing class:
QDrantHttpClientImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Verify the builder and build the client.setConnectTimeout(Duration connectTimeout) Set connection timeout.setHostname(String hostname) Set the hostname for the client.setOkHttpClient(okhttp3.OkHttpClient okClient) Set a custom http client to be used.setPort(int port) Set the port to connect to.setReadTimeout(Duration readTimeout) Set read timeout for the client.Set the protocol scheme to be used for the client (e.g.: http, https).setWriteTimeout(Duration writeTimeout) Set write timeout for the client.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Verify the builder and build the client.- Returns:
-
setScheme
Set the protocol scheme to be used for the client (e.g.: http, https).- Parameters:
scheme-- Returns:
- Fluent API
-
setHostname
Set the hostname for the client.- Parameters:
hostname-- Returns:
- Fluent API
-
setOkHttpClient
Set a custom http client to be used. A default client will be generated if non is specified.- Parameters:
okClient-- Returns:
-
setPort
Set the port to connect to. (e.g. 6333).- Parameters:
port-- Returns:
- Fluent API
-
setConnectTimeout
Set connection timeout.- Parameters:
connectTimeout-- Returns:
- Fluent API
-
setReadTimeout
Set read timeout for the client.- Parameters:
readTimeout-- Returns:
- Fluent API
-
setWriteTimeout
Set write timeout for the client.- Parameters:
writeTimeout-- Returns:
- Fluent API
-