@Deprecated public final class ConcurrencyLimitingHttpClient extends ConcurrencyLimitingClient
HttpClient decorator that limits the concurrent number of active HTTP requests.
For example:
WebClientBuilder builder = WebClient.builder(...);
builder.decorator(ConcurrencyLimitingClient.newDecorator(16));
WebClient client = builder.build();
| Modifier and Type | Method and Description |
|---|---|
static Function<? super HttpClient,ConcurrencyLimitingClient> |
newDecorator(int maxConcurrency)
Deprecated.
|
static Function<? super HttpClient,ConcurrencyLimitingClient> |
newDecorator(int maxConcurrency,
long timeout,
TimeUnit unit)
Deprecated.
|
newDeferredResponseexecute, numActiveRequestsas, delegate, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecute@Deprecated public static Function<? super HttpClient,ConcurrencyLimitingClient> newDecorator(int maxConcurrency)
ConcurrencyLimitingClient.newDecorator(int)HttpClient decorator that limits the concurrent number of active HTTP requests.@Deprecated public static Function<? super HttpClient,ConcurrencyLimitingClient> newDecorator(int maxConcurrency, long timeout, TimeUnit unit)
ConcurrencyLimitingClient.newDecorator(int, long, TimeUnit)HttpClient decorator that limits the concurrent number of active HTTP requests.Copyright © 2020 LeanCloud. All rights reserved.