@InterfaceAudience.Private
@InterfaceStability.Evolving
public interface OperationQuota
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
OperationQuota.OperationType |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addGetResult(Result result)
Add a get result.
|
void |
addMutation(Mutation mutation)
Add a mutation result.
|
void |
addScanResult(List<Result> results)
Add a scan result.
|
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
|
long |
getReadAvailable() |
long |
getWriteAvailable() |
void checkQuota(int numWrites,
int numReads,
int numScans)
throws RpcThrottlingException
numWrites - 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.void close()
void addGetResult(Result result)
void addScanResult(List<Result> results)
void addMutation(Mutation mutation)
long getReadAvailable()
long getWriteAvailable()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.