Interface EndpointBuilder<E,S>


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

    • 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
    • addServer

      default EndpointBuilder<E,S> addServer(S server)
      Like addServer(Object, String) with a default key.
    • build

      E build()
      Returns:
      the endpoint