@InterfaceAudience.Private @InterfaceStability.Evolving public class ExceedOperationQuota extends DefaultOperationQuota
OperationQuota.OperationTypelimiters, readAvailable, readCapacityUnitConsumed, readCapacityUnitDiff, readConsumed, readDiff, writeAvailable, writeCapacityUnitConsumed, writeCapacityUnitDiff, writeConsumed, writeDiff| 构造器和说明 |
|---|
ExceedOperationQuota(org.apache.hadoop.conf.Configuration conf,
QuotaLimiter regionServerLimiter,
QuotaLimiter... limiters) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, getWriteAvailable, updateEstimateConsumeQuotapublic ExceedOperationQuota(org.apache.hadoop.conf.Configuration conf,
QuotaLimiter regionServerLimiter,
QuotaLimiter... limiters)
public void checkQuota(int numWrites,
int numReads,
int numScans)
throws RpcThrottlingException
OperationQuotacheckQuota 在接口中 OperationQuotacheckQuota 在类中 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 在接口中 OperationQuotaclose 在类中 DefaultOperationQuotaCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.