public class OperationAccountant extends Object
Constructor and Description |
---|
OperationAccountant()
Constructor for
OperationAccountant . |
Modifier and Type | Method and Description |
---|---|
void |
awaitCompletion()
Blocks until all outstanding RPCs and retries have completed
|
boolean |
hasInflightOperations()
hasInflightRequests.
|
void |
registerOperation(com.google.common.util.concurrent.ListenableFuture<?> future)
Register a new RPC operation.
|
public OperationAccountant()
Constructor for OperationAccountant
.
public void registerOperation(com.google.common.util.concurrent.ListenableFuture<?> future)
onOperationCompletion()
.public void awaitCompletion() throws InterruptedException
InterruptedException
- if any.public boolean hasInflightOperations()
hasInflightRequests.
OperationAccountant