Class Cluster.Builder
java.lang.Object
com.yahoo.vespa.http.client.config.Cluster.Builder
- Enclosing class:
- Cluster
Builder for
Cluster
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddEndpoint
(Endpoint endpoint) Adds an Endpoint (a HTTP gateway) to this Cluster.build()
getRoute()
Sets a route specific to this cluster, which overrides the route set inFeedParams.getRoute()
.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addEndpoint
Adds an Endpoint (a HTTP gateway) to this Cluster.- Parameters:
endpoint
- the Endpoint to add- Returns:
- this, for chaining
-
setRoute
Sets a route specific to this cluster, which overrides the route set inFeedParams.getRoute()
.- Parameters:
route
- a route specific to this cluster- Returns:
- this, for chaining
-
build
-
getRoute
-