Class Cluster.Builder

java.lang.Object
com.yahoo.vespa.http.client.config.Cluster.Builder
Enclosing class:
Cluster

public static final class Cluster.Builder extends Object
Builder for Cluster.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • 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 in FeedParams.getRoute().
      Parameters:
      route - a route specific to this cluster
      Returns:
      this, for chaining
    • build

      public Cluster build()
    • getRoute

      public String getRoute()