Class Cluster.Builder

  • Enclosing class:
    Cluster

    public static final class Cluster.Builder
    extends java.lang.Object
    Builder for Cluster.
    • Constructor Detail

      • Builder

        public Builder()
    • 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​(java.lang.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.
      • getRoute

        public java.lang.String getRoute()