com.google.cloud.bigtable.config
Class CallOptionsConfig.Builder
- java.lang.Object
-
- com.google.cloud.bigtable.config.CallOptionsConfig.Builder
-
- Enclosing class:
- CallOptionsConfig
public static class CallOptionsConfig.Builder extends Object
-
-
Constructor Summary
Constructors Constructor and Description Builder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description CallOptionsConfig
build()
CallOptionsConfig.Builder
setLongRpcTimeoutMs(int longRpcTimeoutMs)
Deprecated.Please usesetMutateRpcTimeoutMs(int)
orsetReadRowsRpcTimeoutMs(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.
-
-
-
Constructor Detail
-
Builder
@Deprecated public Builder()
Deprecated.
-
-
Method Detail
-
setUseTimeout
public CallOptionsConfig.Builder setUseTimeout(boolean useTimeout)
If true, turn on timeouts for unary RPCS like mutations, and single row readRows.- Parameters:
useTimeout
- flag to enable use of timeout.- Returns:
- a
CallOptionsConfig.Builder
object, for chaining
-
setTimeoutMs
@Deprecated public CallOptionsConfig.Builder setTimeoutMs(int timeoutMs)
Deprecated.The amount of milliseconds to wait before issuing a client side timeout for short RPCs.- Parameters:
timeoutMs
- timeout value in milliseconds.- Returns:
- a
CallOptionsConfig.Builder
object, for chaining
-
setShortRpcTimeoutMs
public CallOptionsConfig.Builder setShortRpcTimeoutMs(int shortRpcTimeoutMs)
The amount of milliseconds to wait before issuing a client side timeout for short RPCs.- Parameters:
shortRpcTimeoutMs
- timeout value in milliseconds.- Returns:
- a
CallOptionsConfig.Builder
object, for chaining
-
setLongRpcTimeoutMs
@Deprecated public CallOptionsConfig.Builder setLongRpcTimeoutMs(int longRpcTimeoutMs)
Deprecated. Please usesetMutateRpcTimeoutMs(int)
orsetReadRowsRpcTimeoutMs(int)
.The amount of milliseconds to wait before issuing a client side timeout for long running RPCs.- Parameters:
longRpcTimeoutMs
- timeout value in milliseconds.- Returns:
- a
CallOptionsConfig.Builder
object, for chaining
-
setMutateRpcTimeoutMs
public CallOptionsConfig.Builder setMutateRpcTimeoutMs(int mutateRpcTimeoutMs)
The amount of time in milliseconds to wait before issuing a client side timeout for row mutation RPCs.- Parameters:
mutateRpcTimeoutMs
- timeout value in milliseconds.- Returns:
- a
CallOptionsConfig.Builder
object, for chaining
-
setReadRowsRpcTimeoutMs
public CallOptionsConfig.Builder setReadRowsRpcTimeoutMs(int readStreamRpcTimeoutMs)
The amount of time in millisecond to wait before issuing a client side timeout for readRows streaming RPCs.- Parameters:
readStreamRpcTimeoutMs
- timeout value in milliseconds.- Returns:
- a
CallOptionsConfig.Builder
object, for chaining
-
build
public CallOptionsConfig build()
-
-