public class QuotaRequestAggregator
extends java.lang.Object
AllocateQuotaRequests.| Modifier and Type | Field and Description |
|---|---|
static int |
NON_CACHING |
| Constructor and Description |
|---|
QuotaRequestAggregator(java.lang.String serviceName,
QuotaAggregationOptions options,
com.google.common.base.Ticker ticker) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.servicecontrol.v1.AllocateQuotaResponse |
allocateQuota(com.google.api.servicecontrol.v1.AllocateQuotaRequest req) |
void |
cacheResponse(com.google.api.servicecontrol.v1.AllocateQuotaRequest req,
com.google.api.servicecontrol.v1.AllocateQuotaResponse resp) |
void |
clear()
Clears this instances cache of aggregated operations.
|
java.util.List<com.google.api.servicecontrol.v1.AllocateQuotaRequest> |
flush() |
int |
getFlushIntervalMillis() |
public static final int NON_CACHING
public QuotaRequestAggregator(java.lang.String serviceName,
QuotaAggregationOptions options,
@Nullable
com.google.common.base.Ticker ticker)
public int getFlushIntervalMillis()
flush()public java.util.List<com.google.api.servicecontrol.v1.AllocateQuotaRequest> flush()
public void clear()
public com.google.api.servicecontrol.v1.AllocateQuotaResponse allocateQuota(com.google.api.servicecontrol.v1.AllocateQuotaRequest req)
public void cacheResponse(com.google.api.servicecontrol.v1.AllocateQuotaRequest req,
com.google.api.servicecontrol.v1.AllocateQuotaResponse resp)