@InterfaceAudience.Private public abstract class AsyncRpcRetryingCaller<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected 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,
AsyncConnectionImpl conn,
int priority,
long pauseNs,
long pauseNsForServerOverloaded,
int maxAttempts,
long operationTimeoutNs,
long rpcTimeoutNs,
int startLogErrorsCnt,
Map<String,byte[]> requestAttributes) |
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 AsyncConnectionImpl conn
protected final CompletableFuture<T> future
protected final HBaseRpcController controller
public AsyncRpcRetryingCaller(org.apache.hbase.thirdparty.io.netty.util.Timer retryTimer, AsyncConnectionImpl conn, int priority, long pauseNs, long pauseNsForServerOverloaded, int maxAttempts, long operationTimeoutNs, long rpcTimeoutNs, int startLogErrorsCnt, Map<String,byte[]> requestAttributes)
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–2020 The Apache Software Foundation. All rights reserved.