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 |
setMutateRpcTimeoutMs(int mutateRpcTimeoutMs)
The amount of time in milliseconds to wait before issuing a client side timeout for row
mutation 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 |
setShortRpcTimeoutMs(int shortRpcTimeoutMs)
The amount of milliseconds to wait before issuing a client side timeout for short RPCs.
|
CallOptionsConfig.Builder |
setTimeoutMs(int timeoutMs)
Deprecated.
|
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)
timeoutMs
- timeout value in milliseconds.CallOptionsConfig.Builder
object, for chainingpublic CallOptionsConfig.Builder setShortRpcTimeoutMs(int shortRpcTimeoutMs)
shortRpcTimeoutMs
- 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)
mutateRpcTimeoutMs
- timeout value in milliseconds.CallOptionsConfig.Builder
object, for chainingpublic CallOptionsConfig.Builder setReadRowsRpcTimeoutMs(int readStreamRpcTimeoutMs)
readStreamRpcTimeoutMs
- timeout value in milliseconds.CallOptionsConfig.Builder
object, for chainingpublic CallOptionsConfig build()