Class Cluster.Builder
- java.lang.Object
-
- com.yahoo.vespa.http.client.config.Cluster.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cluster.Builder
addEndpoint(Endpoint endpoint)
Adds an Endpoint (a HTTP gateway) to this Cluster.Cluster
build()
String
getRoute()
Cluster.Builder
setRoute(String route)
Sets a route specific to this cluster, which overrides the route set inFeedParams.getRoute()
.
-
-
-
Method Detail
-
addEndpoint
public Cluster.Builder addEndpoint(Endpoint endpoint)
Adds an Endpoint (a HTTP gateway) to this Cluster.- Parameters:
endpoint
- the Endpoint to add- Returns:
- this, for chaining
-
setRoute
public Cluster.Builder setRoute(String route)
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
public Cluster build()
-
getRoute
public String getRoute()
-
-