public class RateLimitedRequester extends Requester
Modifier and Type | Field and Description |
---|---|
static Lazy<ScheduledExecutorService> |
executor
A scheduler used to wait for async delays.
|
Constructor and Description |
---|
RateLimitedRequester(RiotApiConfig config) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<org.asynchttpclient.Response> |
getRequestNonRateLimitedAsync(String methodId,
String relativeUrl,
Region region,
List<org.asynchttpclient.Param> params) |
CompletableFuture<org.asynchttpclient.Response> |
getRequestRateLimitedAsync(String methodId,
String relativeUrl,
Region region,
List<org.asynchttpclient.Param> params) |
close, getRequestAsync
public static final Lazy<ScheduledExecutorService> executor
public RateLimitedRequester(RiotApiConfig config)
public CompletableFuture<org.asynchttpclient.Response> getRequestNonRateLimitedAsync(String methodId, String relativeUrl, Region region, List<org.asynchttpclient.Param> params)
public CompletableFuture<org.asynchttpclient.Response> getRequestRateLimitedAsync(String methodId, String relativeUrl, Region region, List<org.asynchttpclient.Param> params)
Copyright © 2019. All rights reserved.