Interface EndpointBuilder<E,​S>


  • public interface EndpointBuilder<E,​S>
    A builder for an endpoint.
    Author:
    Julien Viet
    • Method Detail

      • addServer

        EndpointBuilder<E,​S> addServer​(S server,
                                             String key)
        Add a server with its associated key
        Parameters:
        server - the server
        key - the key
        Returns:
        the next builder to be used, it might return a new instance
      • build

        E build()
        Returns:
        the endpoint