@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.HashedWheelTimer 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 void |
onError(Throwable error,
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.HashedWheelTimer retryTimer, org.apache.hadoop.hbase.client.AsyncConnectionImpl conn, long pauseNs, int maxAttempts, long operationTimeoutNs, long rpcTimeoutNs, int startLogErrorsCnt)
protected long remainingTimeNs()
protected void completeExceptionally()
protected void resetCallTimeout()
protected void onError(Throwable error, Supplier<String> errMsg, Consumer<Throwable> updateCachedLocation)
protected abstract void doCall()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.