public static class HTTPClusterDiscoveryEndpoint.Builder extends Object
HTTPClusterDiscoveryEndpoint
Constructor and Description |
---|
Builder()
Basic constructor.
|
Modifier and Type | Method and Description |
---|---|
HTTPClusterDiscoveryEndpoint |
build()
Build the discovery endpoint configuration
|
HTTPClusterDiscoveryEndpoint.Builder |
withConnectTimeout(int connectTimeout)
Specify the connection timeout for discovery endpoint
|
HTTPClusterDiscoveryEndpoint.Builder |
withReadTimeout(int readTimeout)
Specify the read timeout for discovery endpoint connection
|
HTTPClusterDiscoveryEndpoint.Builder |
withURI(String uri)
Specify the cluster discovery endpoint URI
|
public HTTPClusterDiscoveryEndpoint.Builder withURI(String uri)
uri
- discovery endpoint URI, should not be null or emptypublic HTTPClusterDiscoveryEndpoint.Builder withConnectTimeout(int connectTimeout)
connectTimeout
- connection timeout, in millisecondsHTTPClusterDiscoveryEndpoint.setConnectTimeout(int)
public HTTPClusterDiscoveryEndpoint.Builder withReadTimeout(int readTimeout)
readTimeout
- timeout of receiving response in the connection, in millisecondsHTTPClusterDiscoveryEndpoint.setReadTimeout(int)
public HTTPClusterDiscoveryEndpoint build()
HTTPClusterDiscoveryEndpoint
instanceCopyright © 2025 Picodata. All rights reserved.