Package io.tarantool.driver.cluster
Class HTTPClusterDiscoveryEndpoint.Builder
- java.lang.Object
-
- io.tarantool.driver.cluster.HTTPClusterDiscoveryEndpoint.Builder
-
- Enclosing class:
- HTTPClusterDiscoveryEndpoint
public static class HTTPClusterDiscoveryEndpoint.Builder extends Object
Builder forHTTPClusterDiscoveryEndpoint
-
-
Constructor Summary
Constructors Constructor Description Builder()Basic constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HTTPClusterDiscoveryEndpointbuild()Build the discovery endpoint configurationHTTPClusterDiscoveryEndpoint.BuilderwithConnectTimeout(int connectTimeout)Specify the connection timeout for discovery endpointHTTPClusterDiscoveryEndpoint.BuilderwithReadTimeout(int readTimeout)Specify the read timeout for discovery endpoint connectionHTTPClusterDiscoveryEndpoint.BuilderwithURI(String uri)Specify the cluster discovery endpoint URI
-
-
-
Method Detail
-
withURI
public HTTPClusterDiscoveryEndpoint.Builder withURI(String uri)
Specify the cluster discovery endpoint URI- Parameters:
uri- discovery endpoint URI, should not be null or empty- Returns:
- this builder instance
-
withConnectTimeout
public HTTPClusterDiscoveryEndpoint.Builder withConnectTimeout(int connectTimeout)
Specify the connection timeout for discovery endpoint- Parameters:
connectTimeout- connection timeout, in milliseconds- Returns:
- this builder instance
- See Also:
HTTPClusterDiscoveryEndpoint.setConnectTimeout(int)
-
withReadTimeout
public HTTPClusterDiscoveryEndpoint.Builder withReadTimeout(int readTimeout)
Specify the read timeout for discovery endpoint connection- Parameters:
readTimeout- timeout of receiving response in the connection, in milliseconds- Returns:
- this builder instance
- See Also:
HTTPClusterDiscoveryEndpoint.setReadTimeout(int)
-
build
public HTTPClusterDiscoveryEndpoint build()
Build the discovery endpoint configuration- Returns:
- a
HTTPClusterDiscoveryEndpointinstance
-
-