public class AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> extends AsyncRpcRetryingCallerFactory.BuilderBase
Modifier and Type | Field and Description |
---|---|
private AsyncServerRequestRpcRetryingCaller.Callable<T> |
callable |
private long |
operationTimeoutNs |
private long |
rpcTimeoutNs |
private ServerName |
serverName |
maxAttempts, pauseForCQTBENs, pauseNs, startLogErrorsCnt
Constructor and Description |
---|
ServerRequestCallerBuilder() |
Modifier and Type | Method and Description |
---|---|
AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> |
action(AsyncServerRequestRpcRetryingCaller.Callable<T> callable) |
AsyncServerRequestRpcRetryingCaller<T> |
build() |
CompletableFuture<T> |
call() |
AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> |
maxAttempts(int maxAttempts) |
AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> |
operationTimeout(long operationTimeout,
TimeUnit unit) |
AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> |
pause(long pause,
TimeUnit unit) |
AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> |
pauseForCQTBE(long pause,
TimeUnit unit) |
AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> |
rpcTimeout(long rpcTimeout,
TimeUnit unit) |
AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> |
serverName(ServerName serverName) |
AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> |
startLogErrorsCnt(int startLogErrorsCnt) |
private AsyncServerRequestRpcRetryingCaller.Callable<T> callable
private long operationTimeoutNs
private long rpcTimeoutNs
private ServerName serverName
public ServerRequestCallerBuilder()
public AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> action(AsyncServerRequestRpcRetryingCaller.Callable<T> callable)
public AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> operationTimeout(long operationTimeout, TimeUnit unit)
public AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> rpcTimeout(long rpcTimeout, TimeUnit unit)
public AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> pause(long pause, TimeUnit unit)
public AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> pauseForCQTBE(long pause, TimeUnit unit)
public AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> maxAttempts(int maxAttempts)
public AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> startLogErrorsCnt(int startLogErrorsCnt)
public AsyncRpcRetryingCallerFactory.ServerRequestCallerBuilder<T> serverName(ServerName serverName)
public AsyncServerRequestRpcRetryingCaller<T> build()
public CompletableFuture<T> call()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.