public class AsyncRpcRetryingCallerFactory.BatchCallerBuilder extends AsyncRpcRetryingCallerFactory.BuilderBase
Modifier and Type | Field and Description |
---|---|
private List<? extends Row> |
actions |
private long |
operationTimeoutNs |
private long |
rpcTimeoutNs |
private TableName |
tableName |
maxAttempts, pauseNs, pauseNsForServerOverloaded, startLogErrorsCnt
Constructor and Description |
---|
BatchCallerBuilder() |
Modifier and Type | Method and Description |
---|---|
AsyncRpcRetryingCallerFactory.BatchCallerBuilder |
actions(List<? extends Row> actions) |
<T> AsyncBatchRpcRetryingCaller<T> |
build() |
<T> List<CompletableFuture<T>> |
call() |
AsyncRpcRetryingCallerFactory.BatchCallerBuilder |
maxAttempts(int maxAttempts) |
AsyncRpcRetryingCallerFactory.BatchCallerBuilder |
operationTimeout(long operationTimeout,
TimeUnit unit) |
AsyncRpcRetryingCallerFactory.BatchCallerBuilder |
pause(long pause,
TimeUnit unit) |
AsyncRpcRetryingCallerFactory.BatchCallerBuilder |
pauseForServerOverloaded(long pause,
TimeUnit unit) |
AsyncRpcRetryingCallerFactory.BatchCallerBuilder |
rpcTimeout(long rpcTimeout,
TimeUnit unit) |
AsyncRpcRetryingCallerFactory.BatchCallerBuilder |
startLogErrorsCnt(int startLogErrorsCnt) |
AsyncRpcRetryingCallerFactory.BatchCallerBuilder |
table(TableName tableName) |
private long operationTimeoutNs
private long rpcTimeoutNs
public BatchCallerBuilder()
public AsyncRpcRetryingCallerFactory.BatchCallerBuilder table(TableName tableName)
public AsyncRpcRetryingCallerFactory.BatchCallerBuilder actions(List<? extends Row> actions)
public AsyncRpcRetryingCallerFactory.BatchCallerBuilder operationTimeout(long operationTimeout, TimeUnit unit)
public AsyncRpcRetryingCallerFactory.BatchCallerBuilder rpcTimeout(long rpcTimeout, TimeUnit unit)
public AsyncRpcRetryingCallerFactory.BatchCallerBuilder pause(long pause, TimeUnit unit)
public AsyncRpcRetryingCallerFactory.BatchCallerBuilder pauseForServerOverloaded(long pause, TimeUnit unit)
public AsyncRpcRetryingCallerFactory.BatchCallerBuilder maxAttempts(int maxAttempts)
public AsyncRpcRetryingCallerFactory.BatchCallerBuilder startLogErrorsCnt(int startLogErrorsCnt)
public <T> AsyncBatchRpcRetryingCaller<T> build()
public <T> List<CompletableFuture<T>> call()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.