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