use of com.artipie.http.BaseSlice in project artipie by artipie.
the class VertxMain method listenOn.
/**
* Starts HTTP server listening on specified port.
*
* @param slice Slice.
* @param metrics Metrics.
* @param sport Server port.
* @return Port server started to listen on.
*/
private int listenOn(final Slice slice, final Metrics metrics, final int sport) {
final VertxSliceServer server = new VertxSliceServer(this.vertx, new BaseSlice(metrics, slice), sport);
this.servers.add(server);
return server.start();
}
Aggregations