public class AsyncRpcRetryingCallerFactory.SingleRequestCallerBuilder<T> extends AsyncRpcRetryingCallerFactory.BuilderBase
Modifier and Type | Field and Description |
---|---|
private AsyncSingleRequestRpcRetryingCaller.Callable<T> |
callable |
private RegionLocateType |
locateType |
private long |
operationTimeoutNs |
private int |
replicaId |
private byte[] |
row |
private long |
rpcTimeoutNs |
private TableName |
tableName |
maxAttempts, pauseNs, startLogErrorsCnt
Constructor and Description |
---|
SingleRequestCallerBuilder() |
private byte[] row
private AsyncSingleRequestRpcRetryingCaller.Callable<T> callable
private long operationTimeoutNs
private long rpcTimeoutNs
private RegionLocateType locateType
private int replicaId
public SingleRequestCallerBuilder()
public AsyncRpcRetryingCallerFactory.SingleRequestCallerBuilder<T> table(TableName tableName)
public AsyncRpcRetryingCallerFactory.SingleRequestCallerBuilder<T> row(byte[] row)
public AsyncRpcRetryingCallerFactory.SingleRequestCallerBuilder<T> action(AsyncSingleRequestRpcRetryingCaller.Callable<T> callable)
public AsyncRpcRetryingCallerFactory.SingleRequestCallerBuilder<T> operationTimeout(long operationTimeout, TimeUnit unit)
public AsyncRpcRetryingCallerFactory.SingleRequestCallerBuilder<T> rpcTimeout(long rpcTimeout, TimeUnit unit)
public AsyncRpcRetryingCallerFactory.SingleRequestCallerBuilder<T> locateType(RegionLocateType locateType)
public AsyncRpcRetryingCallerFactory.SingleRequestCallerBuilder<T> pause(long pause, TimeUnit unit)
public AsyncRpcRetryingCallerFactory.SingleRequestCallerBuilder<T> maxAttempts(int maxAttempts)
public AsyncRpcRetryingCallerFactory.SingleRequestCallerBuilder<T> startLogErrorsCnt(int startLogErrorsCnt)
public AsyncRpcRetryingCallerFactory.SingleRequestCallerBuilder<T> replicaId(int replicaId)
public AsyncSingleRequestRpcRetryingCaller<T> build()
public CompletableFuture<T> call()
build().call()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.