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)
LikeaddServer(Object, String)
with a default key.EndpointBuilder<E,S>
addServer(S server, String key)
Add aserver
with its associatedkey
E
build()
-
-
-
Method Detail
-
addServer
EndpointBuilder<E,S> addServer(S server, String key)
Add aserver
with its associatedkey
- Parameters:
server
- the serverkey
- the key- Returns:
- the next builder to be used, it might return a new instance
-
addServer
default EndpointBuilder<E,S> addServer(S server)
LikeaddServer(Object, String)
with a default key.
-
build
E build()
- Returns:
- the endpoint
-
-