public static class CallOptionsConfig.Builder extends Object
Constructor and Description |
---|
Builder()
Deprecated.
Please use
CallOptionsConfig.builder() |
Modifier and Type | Method and Description |
---|---|
CallOptionsConfig |
build() |
CallOptionsConfig.Builder |
setLongRpcTimeoutMs(int longRpcTimeoutMs)
Deprecated.
Please use
setMutateRpcTimeoutMs(int) or setReadRowsRpcTimeoutMs(int) . |
CallOptionsConfig.Builder |
setMutateRpcAttemptTimeoutMs(int mutateRpcAttemptTimeoutMs)
The amount of time in milliseconds to wait before issuing a client side timeout for bulk row
mutation RPCs (i.e.
|
CallOptionsConfig.Builder |
setMutateRpcTimeoutMs(int mutateRpcTimeoutMs)
The amount of time in milliseconds to wait before issuing a client side timeout for bulk row
mutation RPCs (i.e.
|
CallOptionsConfig.Builder |
setReadRowsRpcAttemptTimeoutMs(int readRowsRpcAttemptTimeoutMs)
The amount of time in milliseconds to wait before issuing a client side timeout for readRows
streaming RPCs.
|
CallOptionsConfig.Builder |
setReadRowsRpcTimeoutMs(int readStreamRpcTimeoutMs)
The amount of time in millisecond to wait before issuing a client side timeout for readRows
streaming RPCs.
|
CallOptionsConfig.Builder |
setShortRpcAttemptTimeoutMs(int shortRpcAttemptTimeoutMs)
The amount of milliseconds to wait before issuing a client side timeout for a short RPC
attempt.
|
CallOptionsConfig.Builder |
setShortRpcTimeoutMs(int shortRpcTimeoutMs)
The amount of milliseconds to wait before issuing a client side timeout for a short RPC
operation.
|
CallOptionsConfig.Builder |
setTimeoutMs(int timeoutMs)
Deprecated.
Use
setShortRpcAttemptTimeoutMs(int) instead |
CallOptionsConfig.Builder |
setUseTimeout(boolean useTimeout)
If true, turn on timeouts for unary RPCS like mutations, and single row readRows.
|
@Deprecated public Builder()
CallOptionsConfig.builder()
public CallOptionsConfig.Builder setUseTimeout(boolean useTimeout)
useTimeout
- flag to enable use of timeout.CallOptionsConfig.Builder
object, for chaining@Deprecated public CallOptionsConfig.Builder setTimeoutMs(int timeoutMs)
setShortRpcAttemptTimeoutMs(int)
insteadtimeoutMs
- timeout value in milliseconds.CallOptionsConfig.Builder
object, for chainingpublic CallOptionsConfig.Builder setShortRpcTimeoutMs(int shortRpcTimeoutMs)
By short RPC, we mean single-row operations like CheckAndMutateRow, MutateRow, and ReadRows on a single key.
The timeout spans the full end-to-end operation from the user perspective, i.e. covering multiple retry attempts.
shortRpcTimeoutMs
- timeout value in milliseconds.CallOptionsConfig.Builder
object, for chaining@BetaApi(value="The API for setting attempt timeouts is not yet stable and may change in the future") public CallOptionsConfig.Builder setShortRpcAttemptTimeoutMs(int shortRpcAttemptTimeoutMs)
See setShortRpcTimeoutMs(int)
for the definition of short RPC.
This timeout covers a single RPC call attempt to the server, whereas setShortRpcTimeoutMs(int)
covers the total time across all attempts.
shortRpcAttemptTimeoutMs
- timeout value in milliseconds.CallOptionsConfig.Builder
object, for chaining@Deprecated public CallOptionsConfig.Builder setLongRpcTimeoutMs(int longRpcTimeoutMs)
setMutateRpcTimeoutMs(int)
or setReadRowsRpcTimeoutMs(int)
.longRpcTimeoutMs
- timeout value in milliseconds.CallOptionsConfig.Builder
object, for chainingpublic CallOptionsConfig.Builder setMutateRpcTimeoutMs(int mutateRpcTimeoutMs)
shortRpcTimeoutMs
;
The timeout spans the full end-to-end operation from the user perspective, i.e. covering multiple retry attempts.
mutateRpcTimeoutMs
- timeout value in milliseconds.CallOptionsConfig.Builder
object, for chaining@BetaApi(value="The API for setting attempt timeouts is not yet stable and may change in the future") public CallOptionsConfig.Builder setMutateRpcAttemptTimeoutMs(int mutateRpcAttemptTimeoutMs)
shortRpcAttemptTimeoutMs
;
This timeout covers a single RPC call attempt to the server, whereas setShortRpcTimeoutMs(int)
covers the total time across all attempts.
mutateRpcAttemptTimeoutMs
- timeout value in milliseconds.CallOptionsConfig.Builder
object, for chainingpublic CallOptionsConfig.Builder setReadRowsRpcTimeoutMs(int readStreamRpcTimeoutMs)
The timeout spans the full end-to-end operation from the user perspective, i.e. covering multiple retry attempts.
readStreamRpcTimeoutMs
- timeout value in milliseconds.CallOptionsConfig.Builder
object, for chaining@BetaApi(value="The API for setting attempt timeouts is not yet stable and may change in the future") public CallOptionsConfig.Builder setReadRowsRpcAttemptTimeoutMs(int readRowsRpcAttemptTimeoutMs)
This timeout covers a single RPC call attempt to the server, whereas setShortRpcTimeoutMs(int)
covers the total time across all attempts.
readRowsRpcAttemptTimeoutMs
- timeout value in milliseconds.CallOptionsConfig.Builder
object, for chainingpublic CallOptionsConfig build()