@InterfaceAudience.Private public abstract class AsyncRpcRetryingCaller<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.hbase.client.AsyncConnectionImpl |
conn |
protected HBaseRpcController |
controller |
protected CompletableFuture<T> |
future |
protected long |
operationTimeoutNs |
Constructor and Description |
---|
AsyncRpcRetryingCaller(org.apache.hbase.thirdparty.io.netty.util.Timer retryTimer,
org.apache.hadoop.hbase.client.AsyncConnectionImpl conn,
long pauseNs,
int maxAttempts,
long operationTimeoutNs,
long rpcTimeoutNs,
int startLogErrorsCnt) |
Modifier and Type | Method and Description |
---|---|
protected void |
completeExceptionally() |
protected abstract void |
doCall() |
protected Optional<TableName> |
getTableName() |
protected void |
onError(Throwable t,
Supplier<String> errMsg,
Consumer<Throwable> updateCachedLocation) |
protected long |
remainingTimeNs() |
protected void |
resetCallTimeout() |
protected final long operationTimeoutNs
protected final org.apache.hadoop.hbase.client.AsyncConnectionImpl conn
protected final CompletableFuture<T> future
protected final HBaseRpcController controller
public AsyncRpcRetryingCaller(org.apache.hbase.thirdparty.io.netty.util.Timer retryTimer, org.apache.hadoop.hbase.client.AsyncConnectionImpl conn, long pauseNs, int maxAttempts, long operationTimeoutNs, long rpcTimeoutNs, int startLogErrorsCnt)
protected final long remainingTimeNs()
protected final void completeExceptionally()
protected final void resetCallTimeout()
protected final void onError(Throwable t, Supplier<String> errMsg, Consumer<Throwable> updateCachedLocation)
protected abstract void doCall()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.