Package io.vertx.core.spi.endpoint

## Interface EndpointBuilder<E,​S>

-     public interface EndpointBuilder<E,​S>

  A builder for an endpoint.
  Author:
    Julien Viet

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `default EndpointBuilder<E,​S>` | `addServer​(S server)` | Like `addServer(Object, String)` with a default key.
    `EndpointBuilder<E,​S>` | `addServer​(S server, String key)` | Add a `server` with its associated `key`
    `E` | `build()` |

- - ### 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

    - #### addServer

          default EndpointBuilder<E,​S> addServer​(S server)

      Like `addServer(Object, String)` with a default key.

    - #### build

          E build()

      Returns:
        the endpoint