@InterfaceAudience.Private @InterfaceStability.Evolving public class ExceedOperationQuota extends DefaultOperationQuota
OperationQuota.OperationTypelimiters, readAvailable, readCapacityUnitConsumed, readCapacityUnitDiff, readConsumed, readDiff, writeCapacityUnitConsumed, writeCapacityUnitDiff, writeConsumed, writeDiff| Constructor and Description |
|---|
ExceedOperationQuota(org.apache.hadoop.conf.Configuration conf,
QuotaLimiter regionServerLimiter,
QuotaLimiter... limiters) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkQuota(int numWrites,
int numReads,
int numScans)
Checks if it is possible to execute the specified operation.
|
void |
close()
Cleanup method on operation completion
|
addGetResult, addMutation, addScanResult, getReadAvailable, updateEstimateConsumeQuotapublic ExceedOperationQuota(org.apache.hadoop.conf.Configuration conf,
QuotaLimiter regionServerLimiter,
QuotaLimiter... limiters)
public void checkQuota(int numWrites,
int numReads,
int numScans)
throws RpcThrottlingException
OperationQuotacheckQuota in interface OperationQuotacheckQuota in class DefaultOperationQuotanumWrites - number of write operation that will be performednumReads - number of small-read operation that will be performednumScans - number of long-read operation that will be performedRpcThrottlingException - if the operation cannot be performed because RPC quota is
exceeded.public void close()
OperationQuotaclose in interface OperationQuotaclose in class DefaultOperationQuotaCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.