use of io.vertx.core.http.impl.SharedHttpClient in project vert.x by eclipse.
the class VertxImpl method createHttpClient.
public HttpClient createHttpClient(HttpClientOptions options) {
CloseFuture closeFuture = new CloseFuture();
HttpClient client;
if (options.isShared()) {
client = createSharedClient(SharedHttpClient.SHARED_MAP_NAME, options.getName(), closeFuture, cf -> createHttpClient(options, cf));
client = new SharedHttpClient(this, closeFuture, client);
} else {
client = createHttpClient(options, closeFuture);
}
resolveCloseFuture().add(closeFuture);
return client;
}
Aggregations